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"
readme = "README.md"
repository = "https://github.com/napi-rs/napi-rs"
version = "1.0.4"
version = "1.0.5"
[features]
strict = []

View file

@ -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"]}

View file

@ -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"]

View file

@ -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::*;

View file

@ -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<Self> {
let mut ptr = ptr::null_mut();
unsafe {