diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index d6d0eba1..3980e770 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.4" +version = "1.0.5" [features] strict = [] diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml index 270c1e5e..683e3ebc 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.0.0-alpha.3" +version = "2.0.0-alpha.4" [features] compat-mode = [] @@ -18,7 +18,7 @@ type-def = ["napi-derive-backend/type-def"] [dependencies] convert_case = "0.4" -napi-derive-backend = {version = "1.0.4", path = "../backend"} +napi-derive-backend = {version = "1.0.5", 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 2238c3d0..6debd5c0 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.0.0-alpha.2" +version = "2.0.0-alpha.3" [features] async = ["tokio_rt"] diff --git a/crates/napi/src/bindgen_runtime/js_values.rs b/crates/napi/src/bindgen_runtime/js_values.rs index 65cd6ebc..e8919656 100644 --- a/crates/napi/src/bindgen_runtime/js_values.rs +++ b/crates/napi/src/bindgen_runtime/js_values.rs @@ -13,6 +13,7 @@ mod map; mod nil; mod number; mod object; +#[cfg(all(feature = "tokio_rt", feature = "napi4"))] mod promise; #[cfg(feature = "serde-json")] mod serde; @@ -29,6 +30,7 @@ pub use either::*; pub use function::*; pub use nil::*; pub use object::*; +#[cfg(all(feature = "tokio_rt", feature = "napi4"))] pub use promise::*; pub use string::*; pub use symbol::*; diff --git a/crates/napi/src/bindgen_runtime/js_values/object.rs b/crates/napi/src/bindgen_runtime/js_values/object.rs index 3b33fcb4..ef0b4d94 100644 --- a/crates/napi/src/bindgen_runtime/js_values/object.rs +++ b/crates/napi/src/bindgen_runtime/js_values/object.rs @@ -4,6 +4,7 @@ use std::{ffi::CString, ptr}; pub type Object = JsObject; impl Object { + #[cfg(feature = "serde-json")] pub(crate) fn new(env: sys::napi_env) -> Result { let mut ptr = ptr::null_mut(); unsafe {