diff --git a/.github/workflows/test-release.yaml b/.github/workflows/test-release.yaml index 152b3a37..b33f7efa 100644 --- a/.github/workflows/test-release.yaml +++ b/.github/workflows/test-release.yaml @@ -82,7 +82,7 @@ jobs: yarn test --verbose yarn tsc -p examples/napi/tsconfig.json --noEmit yarn test:macro - toolchain: 1.57.0 + toolchain: 1.63.0 - host: macos-latest target: x86_64-apple-darwin build: yarn build:test @@ -113,10 +113,10 @@ jobs: toolchain: stable exclude: - settings: - toolchain: 1.57.0 + toolchain: 1.63.0 node: 18 - settings: - toolchain: 1.57.0 + toolchain: 1.63.0 node: 20 - settings: target: i686-pc-windows-msvc diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index c2dcd028..3b02850b 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" -rust-version = "1.57" +rust-version = "1.63" version = "1.0.52" [package.metadata.workspaces] diff --git a/crates/build/Cargo.toml b/crates/build/Cargo.toml index 07d0a692..c21488ef 100644 --- a/crates/build/Cargo.toml +++ b/crates/build/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "napi-build" readme = "README.md" repository = "https://github.com/napi-rs/napi-rs" -rust-version = "1.57" +rust-version = "1.63" version = "2.0.1" [package.metadata.workspaces] diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml index b11d768d..39d1c78e 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" -rust-version = "1.57" +rust-version = "1.63" version = "2.13.0" [package.metadata.workspaces] diff --git a/crates/napi/Cargo.toml b/crates/napi/Cargo.toml index 573864f0..1b954cfe 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" -rust-version = "1.57" +rust-version = "1.63" version = "2.13.2" [lib] diff --git a/crates/napi/README.md b/crates/napi/README.md index 98550217..0a8a9c4d 100644 --- a/crates/napi/README.md +++ b/crates/napi/README.md @@ -24,7 +24,7 @@ A framework for building compiled `Node.js` add-ons in `Rust` via Node-API. Webs ## MSRV -**Rust** `1.57.0` +**Rust** `1.63.0` | | node12 | node14 | node16 | node18 | node20 | | --------------------- | ------ | ------ | ------ | ------ | ------ | diff --git a/crates/napi/src/js_values/deferred.rs b/crates/napi/src/js_values/deferred.rs index a82e3cca..a1c5583c 100644 --- a/crates/napi/src/js_values/deferred.rs +++ b/crates/napi/src/js_values/deferred.rs @@ -235,8 +235,7 @@ extern "C" fn napi_resolve_deferred unsafe { sys::napi_reject_deferred(env, deferred, error) }; } Err(err) => { - #[cfg(debug_assertions)] - { + if cfg!(debug_assertions) { println!("Failed to reject deferred: {:?}", err); let mut err = ptr::null_mut(); let mut err_msg = ptr::null_mut(); diff --git a/crates/sys/Cargo.toml b/crates/sys/Cargo.toml index 2c327949..21c2eb29 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" -rust-version = "1.57" +rust-version = "1.63" version = "2.2.3" [features]