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:
parent
be70c27667
commit
052bcd8f3e
5 changed files with 7 additions and 4 deletions
|
@ -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 = []
|
||||||
|
|
|
@ -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"]}
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -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::*;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue