Release independent packages

napi@2.4.2
napi-derive@2.4.2
napi-sys@2.2.2
This commit is contained in:
LongYinan 2022-05-10 22:27:27 +08:00
parent 3d4c421585
commit fb8d8b97d6
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
5 changed files with 10 additions and 7 deletions

View file

@ -6,7 +6,7 @@ license = "MIT"
name = "napi-derive-backend"
readme = "README.md"
repository = "https://github.com/napi-rs/napi-rs"
version = "1.0.31"
version = "1.0.32"
[package.metadata.workspaces]
independent = true

View file

@ -7,7 +7,7 @@ license = "MIT"
name = "napi-derive"
readme = "README.md"
repository = "https://github.com/napi-rs/napi-rs"
version = "2.4.0"
version = "2.4.1"
[package.metadata.workspaces]
independent = true

View file

@ -7,7 +7,7 @@ license = "MIT"
name = "napi"
readme = "README.md"
repository = "https://github.com/napi-rs/napi-rs"
version = "2.4.1"
version = "2.4.2"
[package.metadata.docs.rs]
all-features = true
@ -52,7 +52,7 @@ lazy_static = "1"
thread_local = "1"
[dependencies.napi-sys]
version = "2.1.1"
version = "2.2.2"
path = "../sys"
[dependencies.encoding_rs]

View file

@ -1,5 +1,4 @@
use std::collections::{HashMap, HashSet};
use std::ffi::c_void;
use std::ffi::CStr;
use std::mem;
use std::ptr;
@ -451,7 +450,11 @@ unsafe extern "C" fn napi_register_module_v1(
crate::tokio_runtime::TOKIO_RT_REF_COUNT.fetch_add(1, Ordering::SeqCst);
assert_eq!(
unsafe {
sys::napi_add_env_cleanup_hook(env, Some(crate::shutdown_tokio_rt), env as *mut c_void)
sys::napi_add_env_cleanup_hook(
env,
Some(crate::shutdown_tokio_rt),
env as *mut std::ffi::c_void,
)
},
sys::Status::napi_ok
);

View file

@ -8,7 +8,7 @@ license = "MIT"
name = "napi-sys"
readme = "README.md"
repository = "https://github.com/napi-rs/napi-rs"
version = "2.2.1"
version = "2.2.2"
[features]
experimental = []