Skip to content

Commit c5fe136

Browse files
authored
chore(deps): update dependencies
- Extract `futures-timer` and `rand` as workspace dependencies - Update all dependencies where the version bump was trivial. Pull-Request: #6355.
1 parent 0ef1f08 commit c5fe136

45 files changed

Lines changed: 877 additions & 315 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

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

Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,15 @@ libp2p-yamux = { version = "0.48.0", path = "muxers/yamux" }
119119

120120
# External dependencies
121121
asynchronous-codec = { version = "0.7.0" }
122+
axum = { version = "0.7.9" }
123+
criterion = { version = "0.5.1" }
122124
bytes = "1.11.1"
123125
env_logger = "0.11"
124126
futures = "0.3.30"
125127
futures-bounded = { version = "0.3", features = ["tokio"] }
126128
futures-rustls = { version = "0.26.0", default-features = false }
127-
futures-timer = { version = "3" }
129+
futures-timer = "3.0"
130+
hex-literal = "0.4"
128131
getrandom = { version = "0.2", features = ["js"] }
129132
hashlink = "0.11.0"
130133
hickory-proto = { version = "0.26.1", default-features = false }
@@ -136,6 +139,7 @@ multistream-select = { version = "0.14.0", path = "misc/multistream-select" }
136139
prometheus-client = "0.24"
137140
quick-protobuf-codec = { version = "0.4.0", path = "misc/quick-protobuf-codec" }
138141
quickcheck = { package = "quickcheck-ext", path = "misc/quickcheck-ext" }
142+
rand = "0.8.0"
139143
rcgen = "0.13"
140144
ring = "0.17.12"
141145
rw-stream-sink = { version = "0.5.0", path = "misc/rw-stream-sink" }
@@ -144,7 +148,9 @@ tokio = { version = "1.52", default-features = false }
144148
tracing = "0.1.44"
145149
tracing-subscriber = "0.3.23"
146150
unsigned-varint = { version = "0.8.0" }
147-
wasm-bindgen-futures = "0.4"
151+
# Pinned to avoid wasm-bindgen 0.2.121 which breaks gloo-timers 0.2.6 (used by futures-timer for wasm)
152+
# TODO: remove when futures-timer is updated.
153+
wasm-bindgen-futures = "=0.4.50"
148154
web-time = "1.1.0"
149155

150156
[patch.crates-io]

core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"]
1414
either = "1.11"
1515
fnv = "1.0"
1616
futures = { workspace = true, features = ["executor", "thread-pool"] }
17-
futures-timer = "3"
17+
futures-timer = { workspace = true }
1818
web-time = { workspace = true }
1919
libp2p-identity = { workspace = true, features = ["peerid", "ed25519"] }
2020
multiaddr = { workspace = true }
@@ -23,7 +23,7 @@ multistream-select = { workspace = true }
2323
parking_lot = "0.12.5"
2424
pin-project = "1.1.12"
2525
quick-protobuf = "0.8"
26-
rand = "0.8"
26+
rand = { workspace = true }
2727
rw-stream-sink = { workspace = true }
2828
thiserror = { workspace = true }
2929
tracing = { workspace = true }

examples/autonatv2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ clap = { version = "4.6.1", features = ["derive"] }
2020
tokio = { version = "1.52.3", features = ["macros", "rt-multi-thread"] }
2121
tracing = "0.1.44"
2222
tracing-subscriber = { workspace = true, features = ["env-filter"] }
23-
rand = "0.8.5"
23+
rand = { workspace = true }
2424
opentelemetry = { version = "0.27.0", optional = true }
2525
opentelemetry_sdk = { version = "0.27.0", optional = true, features = ["rt-tokio"] }
2626
opentelemetry-otlp = { version = "0.27.0", optional = true }

examples/browser-webrtc/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ crate-type = ["cdylib"]
1818
[dependencies]
1919
anyhow = "1.0.102"
2020
futures = { workspace = true }
21-
rand = "0.8"
21+
rand = { workspace = true }
2222
tracing = { workspace = true }
2323
tracing-subscriber = { workspace = true, features = ["env-filter"] }
2424

2525
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
26-
axum = "0.7.5"
26+
axum = { workspace = true }
2727
libp2p = { path = "../../libp2p", features = [ "ed25519", "macros", "ping", "tokio"] }
2828
libp2p-webrtc = { workspace = true, features = ["tokio"] }
2929
rust-embed = { version = "8.11.0", features = ["include-exclude", "interpolate-folder-path"] }
3030
tokio = { workspace = true, features = ["macros", "net", "rt", "signal"] }
3131
tokio-util = { version = "0.7", features = ["compat"] }
32-
tower = "0.4"
33-
tower-http = { version = "0.5.2", features = ["cors"] }
32+
tower = "0.5"
33+
tower-http = { version = "0.6", features = ["cors"] }
3434
mime_guess = "2.0.4"
3535

3636
[target.'cfg(target_arch = "wasm32")'.dependencies]

examples/dcutr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ release = false
1111
[dependencies]
1212
clap = { version = "4.6.1", features = ["derive"] }
1313
futures = { workspace = true }
14-
futures-timer = "3.0"
14+
futures-timer = { workspace = true }
1515
libp2p = { path = "../../libp2p", features = [ "dns", "dcutr", "identify", "macros", "noise", "ping", "quic", "relay", "rendezvous", "tcp", "tokio", "yamux"] }
1616
tokio = { workspace = true, features = ["macros", "net", "rt", "signal"] }
1717
tracing = { workspace = true }

examples/metrics/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ release = false
1010

1111
[dependencies]
1212
futures = { workspace = true }
13-
axum = "0.7"
13+
axum = { workspace = true }
1414
libp2p = { path = "../../libp2p", features = ["tokio", "metrics", "ping", "noise", "identify", "tcp", "yamux", "macros"] }
1515
opentelemetry = { version = "0.27.0", features = ["metrics"] }
1616
opentelemetry-otlp = { version = "0.27.0", features = ["metrics"] }

examples/stream/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ license = "MIT"
99
release = false
1010

1111
[dependencies]
12+
1213
anyhow = "1"
1314
futures = { workspace = true }
14-
libp2p = { path = "../../libp2p", features = [ "tokio", "quic"] }
15+
libp2p = { path = "../../libp2p", features = ["tokio", "quic"] }
16+
rand = { workspace = true }
1517
libp2p-stream = { path = "../../protocols/stream", version = "0.5.0-alpha" }
16-
rand = "0.8"
1718
tokio = { workspace = true, features = ["full"] }
1819
tracing = { workspace = true }
1920
tracing-subscriber = { workspace = true, features = ["env-filter"] }

identity/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tracing = { workspace = true }
2121
multihash = { version = "0.19.5", optional = true }
2222
p256 = { version = "0.13", default-features = false, features = ["ecdsa", "std", "pem"], optional = true }
2323
quick-protobuf = { version = "0.8.1", optional = true }
24-
rand = { version = "0.8", optional = true }
24+
rand = { workspace = true, optional = true }
2525
sec1 = { version = "0.7", default-features = false, optional = true }
2626
serde = { version = "1", optional = true, features = ["derive"] }
2727
sha2 = { version = "0.10.8", optional = true }
@@ -43,8 +43,8 @@ rand = ["dep:rand"]
4343
quickcheck = { workspace = true }
4444
serde_json = "1.0"
4545
rmp-serde = "1.3"
46-
criterion = "0.5"
47-
hex-literal = "0.4.1"
46+
criterion = "0.8"
47+
hex-literal = "1.1.0"
4848

4949
[[bench]]
5050
name = "peer_id"

identity/benches/peer_id.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1919
// DEALINGS IN THE SOFTWARE.
2020

21-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
21+
use std::hint::black_box;
22+
23+
use criterion::{criterion_group, criterion_main, Criterion};
2224
use libp2p_identity::{Keypair, PeerId};
2325

2426
fn from_bytes(c: &mut Criterion) {

0 commit comments

Comments
 (0)