Release independent packages
napi@2.2.0 napi-derive@2.2.0
This commit is contained in:
parent
18afd86a2e
commit
71f3c0ef7e
4 changed files with 8 additions and 7 deletions
|
@ -6,7 +6,7 @@ license = "MIT"
|
||||||
name = "napi-derive-backend"
|
name = "napi-derive-backend"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/napi-rs/napi-rs"
|
repository = "https://github.com/napi-rs/napi-rs"
|
||||||
version = "1.0.25"
|
version = "1.0.26"
|
||||||
|
|
||||||
[package.metadata.workspaces]
|
[package.metadata.workspaces]
|
||||||
independent = true
|
independent = true
|
||||||
|
|
|
@ -7,7 +7,7 @@ license = "MIT"
|
||||||
name = "napi-derive"
|
name = "napi-derive"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/napi-rs/napi-rs"
|
repository = "https://github.com/napi-rs/napi-rs"
|
||||||
version = "2.1.0"
|
version = "2.2.0"
|
||||||
|
|
||||||
[package.metadata.workspaces]
|
[package.metadata.workspaces]
|
||||||
independent = true
|
independent = true
|
||||||
|
@ -22,7 +22,7 @@ type-def = ["napi-derive-backend/type-def"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
convert_case = "0.5"
|
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"
|
proc-macro2 = "1.0"
|
||||||
quote = "1.0"
|
quote = "1.0"
|
||||||
syn = { version = "1.0", features = ["fold", "full", "extra-traits"] }
|
syn = { version = "1.0", features = ["fold", "full", "extra-traits"] }
|
||||||
|
|
|
@ -7,7 +7,7 @@ license = "MIT"
|
||||||
name = "napi"
|
name = "napi"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/napi-rs/napi-rs"
|
repository = "https://github.com/napi-rs/napi-rs"
|
||||||
version = "2.1.0"
|
version = "2.2.0"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
@ -73,7 +73,7 @@ optional = true
|
||||||
version = "1"
|
version = "1"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
windows = { version = "0.32", features = [
|
windows = { version = "0.33", features = [
|
||||||
"Win32_System_WindowsProgramming",
|
"Win32_System_WindowsProgramming",
|
||||||
"Win32_System_LibraryLoader",
|
"Win32_System_LibraryLoader",
|
||||||
"Win32_Foundation",
|
"Win32_Foundation",
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
|
|
||||||
use std::ffi::CStr;
|
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::LibraryLoader::GetModuleHandleA;
|
||||||
use windows::Win32::System::WindowsProgramming::{DELAYLOAD_INFO, PDELAYLOAD_FAILURE_DLL_CALLBACK};
|
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();
|
return HINSTANCE::default();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe { GetModuleHandleA(PSTR::default()) }
|
unsafe { GetModuleHandleA(PCSTR::default()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
|
Loading…
Reference in a new issue