From fb8d8b97d60b53f50b9595f70ac3d1f8d311ba9a Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 10 May 2022 22:27:27 +0800 Subject: [PATCH] Release independent packages napi@2.4.2 napi-derive@2.4.2 napi-sys@2.2.2 --- crates/backend/Cargo.toml | 2 +- crates/macro/Cargo.toml | 2 +- crates/napi/Cargo.toml | 4 ++-- crates/napi/src/bindgen_runtime/module_register.rs | 7 +++++-- crates/sys/Cargo.toml | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index 4f3db056..5aa1a18e 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.31" +version = "1.0.32" [package.metadata.workspaces] independent = true diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml index 1f055bcd..043a6ee4 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.4.0" +version = "2.4.1" [package.metadata.workspaces] independent = true diff --git a/crates/napi/Cargo.toml b/crates/napi/Cargo.toml index 42f30ae3..d6b1a258 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.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] diff --git a/crates/napi/src/bindgen_runtime/module_register.rs b/crates/napi/src/bindgen_runtime/module_register.rs index 64a9509e..37450b88 100644 --- a/crates/napi/src/bindgen_runtime/module_register.rs +++ b/crates/napi/src/bindgen_runtime/module_register.rs @@ -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 ); diff --git a/crates/sys/Cargo.toml b/crates/sys/Cargo.toml index a566e933..0e2cea78 100644 --- a/crates/sys/Cargo.toml +++ b/crates/sys/Cargo.toml @@ -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 = []