From df3f9e14397e5a937ed07af794212554a3cd81ac Mon Sep 17 00:00:00 2001 From: Bob Matcuk Date: Thu, 8 Feb 2024 11:11:23 -0500 Subject: [PATCH] upgrade to libuv v1.48.0 --- Cargo.toml | 4 ++-- src/handles/process.rs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 51c3600..2169a4b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libuv" -version = "2.8.0" +version = "2.9.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.47.0" +libuv-sys2 = "~1.48.0" [dev-dependencies] rand = "~0.7.3" diff --git a/src/handles/process.rs b/src/handles/process.rs index 236ab69..d19655a 100644 --- a/src/handles/process.rs +++ b/src/handles/process.rs @@ -103,6 +103,10 @@ bitflags! { /// Hide the subprocess GUI window that would normally be created. This option is only /// meaningful on Windows systems. On Unix it is silently ignored. const WINDOWS_HIDE_GUI = uv::uv_process_flags_UV_PROCESS_WINDOWS_HIDE_GUI as _; + + /// On Windows, if the path to the program to execute has a directory component, search for + /// the exact file name before trying variants with extensions like '.exe' or '.cmd'. + const WINDOWS_FILE_PATH_EXACT_NAME = uv::uv_process_flags_UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME as _; } }