Skip to content

Commit 1fab473

Browse files
committed
ferric-example: update napi-rs crates and drop napi-sys pin
Bump napi to 3.14.2, napi-derive to 3.6.12 and napi-build to 2.6.0, and remove the direct napi-sys =3.0.1 pin added for #331. napi now depends on napi-sys with default-features = false and only enables its dyn-symbols feature through napi's own default features, which this crate already disables. The addon therefore links the Node-API symbols at link time (resolved by weak-node-api) rather than loading them from the host process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GR8DCQmcDBsRJFfDwhy9qx
1 parent 1e55b7a commit 1fab473

2 files changed

Lines changed: 143 additions & 59 deletions

File tree

‎packages/ferric-example/Cargo.lock‎

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

‎packages/ferric-example/Cargo.toml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@ license = "MIT"
88
crate-type = ["cdylib"]
99

1010
[dependencies.napi]
11-
version = "=3.4.0"
11+
version = "3.14.2"
1212
# see https://nodejs.org/api/n-api.html#node-api-version-matrix
1313
default-features = false
1414
features = ["napi3"]
1515

1616
[dependencies.napi-derive]
17-
version = "3.3.0"
17+
version = "3.6.12"
1818
features = ["type-def"]
1919

20-
# See https://github.com/callstackincubator/react-native-node-api/issues/331
21-
[dependencies.napi-sys]
22-
version = "=3.0.1"
23-
2420
[build-dependencies]
25-
napi-build = "2.2.4"
21+
napi-build = "2.6.0"
2622

2723
[profile.release]
2824
lto = true

0 commit comments

Comments
 (0)