Skip to content

Commit 10837cd

Browse files
authored
feat: upgrade napi.rs v3 (#154)
1 parent 40f6275 commit 10837cd

File tree

20 files changed

+7454
-5887
lines changed

20 files changed

+7454
-5887
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,17 @@ jobs:
8989
- host: ubuntu-latest
9090
target: x86_64-unknown-linux-gnu
9191
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
92-
build: yarn build --target x86_64-unknown-linux-gnu
92+
build: |-
93+
rustup update stable &&
94+
yarn build --target x86_64-unknown-linux-gnu
9395
- host: ubuntu-latest
9496
target: x86_64-unknown-linux-musl
9597
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
9698
build: |-
9799
# `perl` needs for building openssl
98100
set -e &&
99101
apk add perl &&
102+
rustup update stable &&
100103
yarn build
101104
- host: ubuntu-latest
102105
target: aarch64-unknown-linux-gnu
@@ -108,6 +111,7 @@ jobs:
108111
apt-get install -y perl &&
109112
unset CC_aarch64_unknown_linux_gnu &&
110113
unset CXX_aarch64_unknown_linux_gnu &&
114+
rustup update stable &&
111115
yarn build --target aarch64-unknown-linux-gnu
112116
- host: ubuntu-latest
113117
target: aarch64-unknown-linux-musl
@@ -116,6 +120,7 @@ jobs:
116120
# `perl` needs for building openssl
117121
set -e &&
118122
apk add perl &&
123+
rustup update stable &&
119124
rustup target add aarch64-unknown-linux-musl &&
120125
yarn build --target aarch64-unknown-linux-musl
121126
- host: ubuntu-latest

Cargo.lock

Lines changed: 59 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ crate-type = ["cdylib"]
1010
bitflags = "2.1.0"
1111
chrono = "0.4"
1212
git2 = { version = "0.20.2", features = ["vendored-libgit2", "vendored-openssl"] }
13-
napi = { version = "2.16.17", default-features = false, features = ["napi6", "chrono_date"] }
14-
napi-derive = "2.16.13"
13+
napi = { version = "3.5.0", default-features = false, features = ["napi6", "chrono_date"] }
14+
napi-derive = "3.3.0"
1515
thiserror = "2.0.3"
1616

1717
[build-dependencies]
18-
napi-build = "2.1.6"
18+
napi-build = "2.3.0"
1919

2020
[profile.release]
2121
lto = true

0 commit comments

Comments
 (0)