chore: MSRV 1.63.0

This commit is contained in:
LongYinan 2023-08-10 10:15:15 +08:00
parent c5f7213a27
commit 07d03c9435
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
8 changed files with 10 additions and 11 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -235,8 +235,7 @@ extern "C" fn napi_resolve_deferred<Data: ToNapiValue, Resolver: FnOnce(Env) ->
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();

View file

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