Release independent packages

napi@2.0.0-alpha.3
napi-derive-backend@1.0.5
napi-derive@2.0.0-alpha.4

Generated by cargo-workspaces
This commit is contained in:
LongYinan 2021-11-16 10:38:16 +08:00
parent be70c27667
commit 052bcd8f3e
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
5 changed files with 7 additions and 4 deletions

View file

@ -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.4" version = "1.0.5"
[features] [features]
strict = [] strict = []

View file

@ -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.0.0-alpha.3" version = "2.0.0-alpha.4"
[features] [features]
compat-mode = [] compat-mode = []
@ -18,7 +18,7 @@ type-def = ["napi-derive-backend/type-def"]
[dependencies] [dependencies]
convert_case = "0.4" 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" 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"]}

View file

@ -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.0.0-alpha.2" version = "2.0.0-alpha.3"
[features] [features]
async = ["tokio_rt"] async = ["tokio_rt"]

View file

@ -13,6 +13,7 @@ mod map;
mod nil; mod nil;
mod number; mod number;
mod object; mod object;
#[cfg(all(feature = "tokio_rt", feature = "napi4"))]
mod promise; mod promise;
#[cfg(feature = "serde-json")] #[cfg(feature = "serde-json")]
mod serde; mod serde;
@ -29,6 +30,7 @@ pub use either::*;
pub use function::*; pub use function::*;
pub use nil::*; pub use nil::*;
pub use object::*; pub use object::*;
#[cfg(all(feature = "tokio_rt", feature = "napi4"))]
pub use promise::*; pub use promise::*;
pub use string::*; pub use string::*;
pub use symbol::*; pub use symbol::*;

View file

@ -4,6 +4,7 @@ use std::{ffi::CString, ptr};
pub type Object = JsObject; pub type Object = JsObject;
impl Object { impl Object {
#[cfg(feature = "serde-json")]
pub(crate) fn new(env: sys::napi_env) -> Result<Self> { pub(crate) fn new(env: sys::napi_env) -> Result<Self> {
let mut ptr = ptr::null_mut(); let mut ptr = ptr::null_mut();
unsafe { unsafe {