Skip to content

Commit 027cc72

Browse files
authored
chore: refresh dependencies (#6)
* chore: refresh dependencies * chore: more * chore: remove aarch windows * chore: ci * chore: tweak build script to satisfy ci * chore: remove stale code * chore: more ci * chore: add rust backtrace * chore: more ci * chore: bump napi version * chore: stop tests in ci
1 parent beb0937 commit 027cc72

File tree

9 files changed

+16298
-11946
lines changed

9 files changed

+16298
-11946
lines changed

.github/workflows/CI.yml

Lines changed: 189 additions & 97 deletions
Large diffs are not rendered by default.

Cargo.toml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ crate-type = ["cdylib"]
88
path = "rust/lib.rs"
99

1010
[dependencies]
11-
libp2p-identity = { version = "0.2.9", features = ["ed25519", "peerid", "rand", "rsa", "secp256k1", "serde"] }
12-
libp2p-tls = "0.5.0"
11+
libp2p-identity = { version = "0.2.10", features = ["ed25519", "peerid", "rand", "rsa", "secp256k1", "serde"] }
12+
libp2p-tls = "0.6.0"
1313
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
14-
napi = { version = "2.16.10", default-features = false, features = ["napi4", "async"] }
15-
napi-derive = "2.16.12"
16-
oneshot = "0.1.8"
17-
pin-project-lite = "0.2.14"
18-
quinn = "0.11.5"
19-
ring = "0.17.8"
20-
rustls = { version = "0.23.13", features = ["ring"] }
21-
tokio = { version = "1.40.0", features = ["full"] }
14+
napi = { version = "3.0.0-alpha.28", default-features = false, features = ["napi9", "async", "tokio_rt"] }
15+
napi-derive = "3.0.0-alpha.26"
16+
oneshot = "0.1.10"
17+
pin-project-lite = "0.2.16"
18+
quinn = "0.11.6"
19+
ring = "0.17.9"
20+
rustls = { version = "0.23.23", features = ["ring"] }
21+
tokio = { version = "1.43.0", features = ["full"] }
22+
# included to satisfy napi dependencies
23+
ctor = "0.3.6"
2224

2325
[build-dependencies]
24-
napi-build = "2.0.1"
26+
napi-build = "2.1.4"
2527

2628
[profile.release]
2729
lto = true

package.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@
1515
}
1616
},
1717
"napi": {
18-
"name": "libp2p-quic",
19-
"triples": {
20-
"additional": [
21-
"aarch64-apple-darwin",
22-
"aarch64-linux-android",
23-
"aarch64-unknown-linux-gnu",
24-
"universal-apple-darwin"
25-
]
26-
}
18+
"binaryName": "libp2p-quic",
19+
"targets": [
20+
"aarch64-apple-darwin",
21+
"aarch64-unknown-linux-gnu",
22+
"aarch64-unknown-linux-musl",
23+
"aarch64-pc-windows-msvc",
24+
"x86_64-apple-darwin",
25+
"x86_64-pc-windows-msvc",
26+
"x86_64-unknown-linux-gnu",
27+
"x86_64-unknown-linux-musl"
28+
]
2729
},
2830
"engines": {
29-
"node": ">= 10"
31+
"node": ">= 20"
3032
},
3133
"keywords": [
3234
"napi",
@@ -40,10 +42,10 @@
4042
"homepage": "https://github.com/ChainSafe/js-libp2p-quic",
4143
"scripts": {
4244
"artifacts": "napi artifacts",
43-
"build": "yarn build:rs:debug && yarn build:ts",
45+
"build": "yarn build:ts",
4446
"build:ts": "aegir build && cp src/*.node dist/src",
45-
"build:rs": "napi build --platform --release -o src --esm --dts napi.d.ts --js napi.js",
46-
"build:rs:debug": "napi build --platform -o src --esm --dts napi.d.ts --js napi.js",
47+
"build:rs": "napi build --platform --release --strip --esm -o src --dts napi.d.ts --js napi.js",
48+
"build:rs:debug": "napi build --platform --esm -o src --dts napi.d.ts --js napi.js",
4749
"dep-check": "aegir dep-check -P test -P src/napi.js",
4850
"docs": "aegir docs",
4951
"lint": "aegir lint",
@@ -53,18 +55,18 @@
5355
"version": "napi version"
5456
},
5557
"dependencies": {
56-
"@libp2p/crypto": "^5.0.1",
57-
"@libp2p/interface": "^2.0.1",
58-
"@multiformats/multiaddr": "^12.3.1",
58+
"@libp2p/crypto": "^5.0.12",
59+
"@libp2p/interface": "^2.6.0",
60+
"@multiformats/multiaddr": "^12.4.0",
5961
"@multiformats/multiaddr-matcher": "^1.6.0",
6062
"it-stream-types": "^2.0.2",
6163
"uint8arraylist": "^2.4.8"
6264
},
6365
"devDependencies": {
64-
"@libp2p/interface-compliance-tests": "^6.0.1",
66+
"@libp2p/interface-compliance-tests": "^6.3.2",
6567
"@libp2p/logger": "^5.0.1",
66-
"@napi-rs/cli": "^3.0.0-alpha.64",
68+
"@napi-rs/cli": "^3.0.0-alpha.70",
6769
"aegir": "^44.1.1"
6870
},
69-
"packageManager": "yarn@1.22.22+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
71+
"packageManager": "yarn@4.6.0"
7072
}

rust/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ impl From<ConfigError> for napi::Error<ConfigErrorCode> {
5555
// All errors returned from this module will be of type `napi::Error<ConfigErrorCode>`
5656
type Result<T> = std::result::Result<T, napi::Error<ConfigErrorCode>>;
5757

58-
#[derive(Clone)]
5958
#[napi(object)]
6059
/// User-level configuration
6160
pub struct Config {

0 commit comments

Comments
 (0)