diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index e0c81010..c7ed7953 100644 --- a/crates/backend/Cargo.toml +++ b/crates/backend/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" name = "napi-derive-backend" readme = "README.md" repository = "https://github.com/napi-rs/napi-rs" -version = "1.0.25" +version = "1.0.26" [package.metadata.workspaces] independent = true diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml index dd57c242..aa9e3721 100644 --- a/crates/macro/Cargo.toml +++ b/crates/macro/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" name = "napi-derive" readme = "README.md" repository = "https://github.com/napi-rs/napi-rs" -version = "2.1.0" +version = "2.2.0" [package.metadata.workspaces] independent = true @@ -22,7 +22,7 @@ type-def = ["napi-derive-backend/type-def"] [dependencies] convert_case = "0.5" -napi-derive-backend = { version = "1.0.25", path = "../backend" } +napi-derive-backend = { version = "1.0.26", path = "../backend" } proc-macro2 = "1.0" quote = "1.0" syn = { version = "1.0", features = ["fold", "full", "extra-traits"] } diff --git a/crates/napi/Cargo.toml b/crates/napi/Cargo.toml index cf39b7c9..614da154 100644 --- a/crates/napi/Cargo.toml +++ b/crates/napi/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" name = "napi" readme = "README.md" repository = "https://github.com/napi-rs/napi-rs" -version = "2.1.0" +version = "2.2.0" [package.metadata.docs.rs] all-features = true @@ -73,7 +73,7 @@ optional = true version = "1" [target.'cfg(windows)'.dependencies] -windows = { version = "0.32", features = [ +windows = { version = "0.33", features = [ "Win32_System_WindowsProgramming", "Win32_System_LibraryLoader", "Win32_Foundation", diff --git a/crates/napi/src/win_delay_load_hook.rs b/crates/napi/src/win_delay_load_hook.rs index 2ed120db..7d8fcb53 100644 --- a/crates/napi/src/win_delay_load_hook.rs +++ b/crates/napi/src/win_delay_load_hook.rs @@ -11,7 +11,8 @@ use std::ffi::CStr; -use windows::Win32::Foundation::{HINSTANCE, PSTR}; +use windows::core::PCSTR; +use windows::Win32::Foundation::HINSTANCE; use windows::Win32::System::LibraryLoader::GetModuleHandleA; use windows::Win32::System::WindowsProgramming::{DELAYLOAD_INFO, PDELAYLOAD_FAILURE_DLL_CALLBACK}; @@ -35,7 +36,7 @@ unsafe extern "C" fn load_exe_hook(event: u32, info: *const DELAYLOAD_INFO) -> H return HINSTANCE::default(); } - unsafe { GetModuleHandleA(PSTR::default()) } + unsafe { GetModuleHandleA(PCSTR::default()) } } #[no_mangle]