From 9481ec81bd28226daf33b9813664d5ce54067f0b Mon Sep 17 00:00:00 2001 From: Bob Matcuk Date: Mon, 9 Oct 2023 14:23:30 -0400 Subject: [PATCH] upgrade to libuv v1.46.0 --- Cargo.toml | 4 ++-- src/error.inc.rs | 3 +++ src/handles/streams/pipe.rs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d3264e4..0e3dba5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libuv" -version = "2.6.0" +version = "2.7.0" description = "A safe rust wrapper for libuv" homepage = "https://github.com/bmatcuk/libuv-rs" repository = "https://github.com/bmatcuk/libuv-rs" @@ -20,7 +20,7 @@ maintenance = { status = "actively-developed" } [dependencies] bitflags = "~1.2.1" -libuv-sys2 = "~1.45.0" +libuv-sys2 = "~1.46.0" [dev-dependencies] rand = "~0.7.3" diff --git a/src/error.inc.rs b/src/error.inc.rs index d9b89e4..a4a653e 100644 --- a/src/error.inc.rs +++ b/src/error.inc.rs @@ -83,6 +83,7 @@ pub enum Error { ESRCH, ETIMEDOUT, ETXTBSY, + EUNATCH, EXDEV, UNKNOWN, } @@ -172,6 +173,7 @@ impl crate::FromInner for Error { uv::uv_errno_t_UV_ESRCH => Error::ESRCH, uv::uv_errno_t_UV_ETIMEDOUT => Error::ETIMEDOUT, uv::uv_errno_t_UV_ETXTBSY => Error::ETXTBSY, + uv::uv_errno_t_UV_EUNATCH => Error::EUNATCH, uv::uv_errno_t_UV_EXDEV => Error::EXDEV, uv::uv_errno_t_UV_UNKNOWN => Error::UNKNOWN, _ => Error::UNKNOWN, @@ -264,6 +266,7 @@ impl Error { Error::ESRCH => uv::uv_errno_t_UV_ESRCH, Error::ETIMEDOUT => uv::uv_errno_t_UV_ETIMEDOUT, Error::ETXTBSY => uv::uv_errno_t_UV_ETXTBSY, + Error::EUNATCH => uv::uv_errno_t_UV_EUNATCH, Error::EXDEV => uv::uv_errno_t_UV_EXDEV, Error::UNKNOWN => uv::uv_errno_t_UV_UNKNOWN, } diff --git a/src/handles/streams/pipe.rs b/src/handles/streams/pipe.rs index 7e9515d..9ae7da8 100644 --- a/src/handles/streams/pipe.rs +++ b/src/handles/streams/pipe.rs @@ -96,7 +96,7 @@ impl PipeHandle { .map_err(|e| Box::new(e) as _) } - /// Connect to the Unix domain socket or the named pipe. + /// Connect to the Unix domain socket or the Windows named pipe. /// /// Note: Paths on Unix get truncated to sizeof(sockaddr_un.sun_path) bytes, typically between /// 92 and 108 bytes.