Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,039 changes: 1,121 additions & 918 deletions Cargo.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,16 @@ libp2p-yamux = { version = "0.47.0", path = "muxers/yamux" }

# External dependencies
asynchronous-codec = { version = "0.7.0" }
axum = { version = "0.7.9" }
criterion = { version = "0.5.1" }
env_logger = "0.11"
futures = "0.3.30"
futures-bounded = { version = "0.3", features = ["tokio"]}
futures-rustls = { version = "0.26.0", default-features = false }
futures-timer = "3.0"
getrandom = "0.2"
if-watch = "3.2.1"
hex-literal = "0.4"
hickory-proto = { version = "0.25.2", default-features = false }
hickory-resolver = { version = "0.25.2", default-features = false }
multiaddr = "0.18.1"
Expand All @@ -133,6 +137,7 @@ multistream-select = { version = "0.13.0", path = "misc/multistream-select" }
prometheus-client = "0.24"
quick-protobuf-codec = { version = "0.3.1", path = "misc/quick-protobuf-codec" }
quickcheck = { package = "quickcheck-ext", path = "misc/quickcheck-ext" }
rand = "0.8.0"
rcgen = "0.13"
ring = "0.17.12"
rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" }
Expand Down
4 changes: 2 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"]
either = "1.11"
fnv = "1.0"
futures = { workspace = true, features = ["executor", "thread-pool"] }
futures-timer = "3"
futures-timer = { workspace = true }
web-time = { workspace = true }
libp2p-identity = { workspace = true, features = ["peerid", "ed25519"] }
multiaddr = { workspace = true }
Expand All @@ -23,7 +23,7 @@ multistream-select = { workspace = true }
parking_lot = "0.12.3"
pin-project = "1.1.5"
quick-protobuf = "0.8"
rand = "0.8"
rand = { workspace = true }
rw-stream-sink = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion examples/autonatv2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ clap = { version = "4.4.18", features = ["derive"] }
tokio = { version = "1.50.0", features = ["macros", "rt-multi-thread"] }
tracing = "0.1.40"
tracing-subscriber = { workspace = true, features = ["env-filter"] }
rand = "0.8.5"
rand = { workspace = true }
opentelemetry = { version = "0.27.0", optional = true }
opentelemetry_sdk = { version = "0.27.0", optional = true, features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.27.0", optional = true }
Expand Down
8 changes: 4 additions & 4 deletions examples/browser-webrtc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ crate-type = ["cdylib"]
[dependencies]
anyhow = "1.0.102"
futures = { workspace = true }
rand = "0.8"
rand = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }

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

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/dcutr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ release = false
[dependencies]
clap = { version = "4.5.6", features = ["derive"] }
futures = { workspace = true }
futures-timer = "3.0"
futures-timer = { workspace = true }
libp2p = { path = "../../libp2p", features = [ "dns", "dcutr", "identify", "macros", "noise", "ping", "quic", "relay", "rendezvous", "tcp", "tokio", "yamux"] }
tokio = { workspace = true, features = ["macros", "net", "rt", "signal"] }
tracing = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion examples/metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ release = false

[dependencies]
futures = { workspace = true }
axum = "0.7"
axum = { workspace = true }
libp2p = { path = "../../libp2p", features = ["tokio", "metrics", "ping", "noise", "identify", "tcp", "yamux", "macros"] }
opentelemetry = { version = "0.27.0", features = ["metrics"] }
opentelemetry-otlp = { version = "0.27.0", features = ["metrics"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/stream/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ anyhow = "1"
futures = { workspace = true }
libp2p = { path = "../../libp2p", features = [ "tokio", "quic"] }
libp2p-stream = { path = "../../protocols/stream", version = "0.4.0-alpha" }
rand = "0.8"
rand = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
Expand Down
6 changes: 3 additions & 3 deletions identity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tracing = { workspace = true }
multihash = { version = "0.19.1", optional = true }
p256 = { version = "0.13", default-features = false, features = ["ecdsa", "std", "pem"], optional = true }
quick-protobuf = { version = "0.8.1", optional = true }
rand = { version = "0.8", optional = true }
rand = { workspace = true, optional = true }
sec1 = { version = "0.7", default-features = false, optional = true }
serde = { version = "1", optional = true, features = ["derive"] }
sha2 = { version = "0.10.8", optional = true }
Expand All @@ -43,8 +43,8 @@ rand = ["dep:rand"]
quickcheck = { workspace = true }
serde_json = "1.0"
rmp-serde = "1.3"
criterion = "0.5"
hex-literal = "0.4.1"
criterion = "0.8"
hex-literal = "1.1.0"

[[bench]]
name = "peer_id"
Expand Down
4 changes: 3 additions & 1 deletion identity/benches/peer_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

use criterion::{black_box, criterion_group, criterion_main, Criterion};
use std::hint::black_box;

use criterion::{criterion_group, criterion_main, Criterion};
use libp2p_identity::{Keypair, PeerId};

fn from_bytes(c: &mut Criterion) {
Expand Down
8 changes: 4 additions & 4 deletions interop-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
anyhow = "1"
futures = { workspace = true }
rand = "0.8.5"
rand = { workspace = true }
serde = { version = "1", features = ["derive"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
axum = "0.7"
axum = { workspace = true }
libp2p = { path = "../libp2p", features = [ "ping", "noise", "tls", "rsa", "macros", "websocket", "tokio", "yamux", "tcp", "dns", "identify", "quic"] }
libp2p-mplex = { path = "../muxers/mplex" }
libp2p-noise = { workspace = true }
Expand All @@ -32,7 +32,7 @@ redis = { version = "0.24.0", default-features = false, features = [
] }
rust-embed = "8.11"
serde_json = "1"
thirtyfour = "=0.32.0" # https://github.com/stevepryde/thirtyfour/issues/169
thirtyfour = "0.36"
tokio = { workspace = true, features = ["full"] }
tower-http = { version = "0.5", features = ["cors", "fs", "trace"] }
tracing = { workspace = true }
Expand All @@ -48,7 +48,7 @@ wasm-logger = { version = "0.2.0" }
web-time = { workspace = true }
reqwest = { version = "0.12", features = ["json"] }
console_error_panic_hook = { version = "0.1.7" }
futures-timer = "3.0.3"
futures-timer = { workspace = true }

[lints]
workspace = true
2 changes: 1 addition & 1 deletion libp2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ upnp = ["dep:libp2p-upnp"]
bytes = "1"
either = "1.9.0"
futures = { workspace = true }
futures-timer = "3.0.2" # Explicit dependency to be used in `wasm-bindgen` feature
futures-timer = { workspace = true }# Explicit dependency to be used in `wasm-bindgen` feature
getrandom = { workspace = true } # Explicit dependency to be used in `wasm-bindgen` feature
# TODO feature flag?
rw-stream-sink = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion misc/connection-limits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ libp2p-ping = { workspace = true }
libp2p-swarm-derive = { path = "../../swarm-derive" }
libp2p-swarm-test = { path = "../../swarm-test" }
quickcheck = { workspace = true }
rand = "0.8.5"
rand = { workspace = true }

[lints]
workspace = true
2 changes: 1 addition & 1 deletion misc/memory-connection-limits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ memory-stats = { version = "1", features = ["always_use_statm"] }
libp2p-core = { workspace = true }
libp2p-swarm = { workspace = true }
libp2p-identity = { workspace = true, features = ["peerid"] }
sysinfo = "0.33"
sysinfo = "0.38"
tracing = { workspace = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion misc/quick-protobuf-codec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ unsigned-varint = { workspace = true, features = ["std"] }
quick-protobuf = "0.8"

[dev-dependencies]
criterion = "0.5.1"
criterion = { workspace = true }
futures = { workspace = true }
quickcheck = { workspace = true }

Expand Down
2 changes: 1 addition & 1 deletion misc/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ license = "MIT"
base64 = "0.22"
clap = { version = "4.5.6", features = ["derive"] }
futures = { workspace = true }
axum = "0.7"
axum = { workspace = true }
libp2p = { workspace = true, features = [
"autonat",
"dns",
Expand Down
4 changes: 2 additions & 2 deletions misc/webrtc-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ libp2p-identity = { workspace = true }
libp2p-noise = { workspace = true }
quick-protobuf = "0.8"
quick-protobuf-codec = { workspace = true }
rand = "0.8"
rand = { workspace = true }
serde = { version = "1.0", features = ["derive"] }
sha2 = "0.10.8"
tinytemplate = "1.2"
tracing = { workspace = true }

[dev-dependencies]
hex-literal = "0.4"
hex-literal = { workspace = true }

[lints]
workspace = true
4 changes: 2 additions & 2 deletions muxers/mplex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ libp2p-core = { workspace = true }
libp2p-identity = { workspace = true }
nohash-hasher = "0.2"
parking_lot = "0.12"
rand = "0.8"
rand = { workspace = true }
smallvec = "1.15.1"
tracing = { workspace = true }
unsigned-varint = { workspace = true, features = ["asynchronous_codec"] }

[dev-dependencies]
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] }
criterion = "0.5"
criterion = { workspace = true }
futures = { workspace = true }
libp2p-identity = { workspace = true, features = ["rand"] }
libp2p-muxer-test-harness = { path = "../test-harness" }
Expand Down
4 changes: 2 additions & 2 deletions muxers/mplex/benches/split_send_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
//! A benchmark for the `split_send_size` configuration option
//! using different transports.

use std::{pin::Pin, time::Duration};
use std::{hint::black_box, pin::Pin, time::Duration};

use criterion::{black_box, criterion_group, criterion_main, Criterion, Throughput};
use criterion::{criterion_group, criterion_main, Criterion, Throughput};
use futures::{channel::oneshot, future::poll_fn, prelude::*};
use libp2p_core::{
multiaddr::multiaddr, muxing, muxing::StreamMuxerExt, transport, transport::ListenerId,
Expand Down
2 changes: 1 addition & 1 deletion muxers/test-harness/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ release = false
[dependencies]
libp2p-core = { workspace = true }
futures = { workspace = true }
futures-timer = "3.0.3"
futures-timer = { workspace = true }
futures_ringbuf = "0.4.0"
tracing = { workspace = true }

Expand Down
4 changes: 2 additions & 2 deletions protocols/autonat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ asynchronous-codec = { workspace = true }
either = { version = "1.9.0", optional = true }
futures = { workspace = true }
futures-bounded = { workspace = true, optional = true }
futures-timer = "3.0"
futures-timer = { workspace = true }
web-time = { workspace = true, optional = true }
libp2p-core = { workspace = true }
libp2p-identity = { workspace = true }
Expand All @@ -29,7 +29,7 @@ libp2p-swarm = { workspace = true }
quick-protobuf = "0.8"
tracing = { workspace = true }
quick-protobuf-codec = { workspace = true }
rand = "0.8"
rand = { workspace = true }
rand_core = { version = "0.6", optional = true }
thiserror = { workspace = true, optional = true }

Expand Down
2 changes: 1 addition & 1 deletion protocols/dcutr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"]
asynchronous-codec = { workspace = true }
either = "1.11.0"
futures = { workspace = true }
futures-timer = "3.0"
futures-timer = { workspace = true }
web-time = { workspace = true }
libp2p-core = { workspace = true }
libp2p-swarm = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion protocols/floodsub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ libp2p-swarm = { workspace = true }
libp2p-identity = { workspace = true }
quick-protobuf = "0.8"
quick-protobuf-codec = { workspace = true }
rand = "0.8"
rand = { workspace = true }
smallvec = "1.15.1"
thiserror = { workspace = true }
tracing = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions protocols/gossipsub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ bytes = "1.11"
either = "1.11"
fnv = "1.0.7"
futures = { workspace = true }
futures-timer = "3.0.2"
futures-timer = { workspace = true }
getrandom = { workspace = true }
hashlink = { workspace = true }
hex_fmt = "0.3.0"
Expand All @@ -33,7 +33,7 @@ libp2p-identity = { workspace = true, features = ["rand"] }
libp2p-swarm = { workspace = true }
quick-protobuf = "0.8"
quick-protobuf-codec = { workspace = true }
rand = "0.8"
rand = { workspace = true }
regex = "1.12.3"
serde = { version = "1", optional = true, features = ["derive"] }
sha2 = "0.10.8"
Expand Down
2 changes: 1 addition & 1 deletion protocols/identify/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
asynchronous-codec = { workspace = true }
futures = { workspace = true }
futures-timer = "3.0.3"
futures-timer = { workspace = true }
futures-bounded = { workspace = true }
libp2p-core = { workspace = true }
libp2p-swarm = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions protocols/kad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ futures-bounded = { workspace = true }
quick-protobuf = "0.8"
quick-protobuf-codec = { workspace = true }
libp2p-identity = { workspace = true, features = ["rand"] }
rand = "0.8"
rand = { workspace = true }
sha2 = "0.10.8"
smallvec = "1.15.1"
uint = "0.10"
futures-timer = "3.0.3"
futures-timer = { workspace = true }
web-time = { workspace = true }
serde = { version = "1.0", optional = true, features = ["derive"] }
thiserror = { workspace = true }
tracing = { workspace = true }

[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] }
futures-timer = "3.0"
futures-timer = { workspace = true }
libp2p-identify = { path = "../identify" }
libp2p-noise = { workspace = true }
libp2p-swarm = { path = "../../swarm", features = ["macros", "tokio"] }
Expand Down
2 changes: 1 addition & 1 deletion protocols/mdns/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if-watch = { workspace = true }
libp2p-core = { workspace = true }
libp2p-swarm = { workspace = true }
libp2p-identity = { workspace = true }
rand = "0.8.3"
rand = { workspace = true }
smallvec = "1.15.1"
socket2 = { version = "0.6.0", features = ["all"] }
tokio = { workspace = true, default-features = false, features = ["net", "time"], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion protocols/perf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ anyhow = "1"
clap = { version = "4.5.6", features = ["derive"] }
futures = { workspace = true }
futures-bounded = { workspace = true }
futures-timer = "3.0"
futures-timer = { workspace = true }
web-time = { workspace = true }
libp2p = { workspace = true, features = ["tokio", "tcp", "quic", "tls", "yamux", "dns"] }
libp2p-core = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions protocols/ping/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ categories = ["network-programming", "asynchronous"]

[dependencies]
futures = { workspace = true }
futures-timer = "3.0.3"
futures-timer = { workspace = true }
web-time = { workspace = true }
libp2p-core = { workspace = true }
libp2p-swarm = { workspace = true }
libp2p-identity = { workspace = true }
rand = "0.8"
rand = { workspace = true }
tracing = { workspace = true }

[dev-dependencies]
Expand Down
Loading
Loading