Skip to content

Commit 1b0defd

Browse files
committed
Merge remote-tracking branch 'origin/master' into implicit-wasm-feature
2 parents 0112d39 + 8541b83 commit 1b0defd

63 files changed

Lines changed: 454 additions & 503 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: 203 additions & 348 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ edition = "2021"
7676
[workspace.dependencies]
7777
libp2p = { version = "0.57.0", path = "libp2p" }
7878
libp2p-allow-block-list = { version = "0.6.0", path = "misc/allow-block-list" }
79-
libp2p-autonat = { version = "0.15.0", path = "protocols/autonat" }
79+
libp2p-autonat = { version = "0.16.0", path = "protocols/autonat" }
8080
libp2p-connection-limits = { version = "0.6.0", path = "misc/connection-limits" }
8181
libp2p-core = { version = "0.43.2", path = "core" }
8282
libp2p-dcutr = { version = "0.14.1", path = "protocols/dcutr" }
83-
libp2p-dns = { version = "0.44.0", path = "transports/dns" }
83+
libp2p-dns = { version = "0.45.0", path = "transports/dns" }
8484
libp2p-floodsub = { version = "0.47.0", path = "protocols/floodsub" }
8585
libp2p-gossipsub = { version = "0.50.0", path = "protocols/gossipsub" }
8686
libp2p-identify = { version = "0.47.0", path = "protocols/identify" }
@@ -98,8 +98,8 @@ libp2p-plaintext = { version = "0.43.0", path = "transports/plaintext" }
9898
libp2p-pnet = { version = "0.26.0", path = "transports/pnet" }
9999
libp2p-quic = { version = "0.13.0", path = "transports/quic" }
100100
libp2p-relay = { version = "0.21.1", path = "protocols/relay" }
101-
libp2p-rendezvous = { version = "0.17.0", path = "protocols/rendezvous" }
102-
libp2p-request-response = { version = "0.29.0", path = "protocols/request-response" }
101+
libp2p-rendezvous = { version = "0.18.0", path = "protocols/rendezvous" }
102+
libp2p-request-response = { version = "0.30.0", path = "protocols/request-response" }
103103
libp2p-server = { version = "0.12.7", path = "misc/server" }
104104
libp2p-stream = { version = "0.4.0-alpha", path = "protocols/stream" }
105105
libp2p-swarm = { version = "0.48.0", path = "swarm" }
@@ -125,7 +125,7 @@ futures-bounded = { version = "0.2.4" }
125125
futures-rustls = { version = "0.26.0", default-features = false }
126126
futures-timer = { version = "3" }
127127
getrandom = { version = "0.2", features = ["js"] }
128-
hashlink = "0.10.0"
128+
hashlink = "0.11.0"
129129
hickory-proto = { version = "0.25.2", default-features = false }
130130
hickory-resolver = { version = "0.25.2", default-features = false }
131131
if-watch = "3.2.1"
@@ -139,7 +139,7 @@ rcgen = "0.13"
139139
ring = "0.17.12"
140140
rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" }
141141
thiserror = "2"
142-
tokio = { version = "1.38", default-features = false }
142+
tokio = { version = "1.50", default-features = false }
143143
tracing = "0.1.41"
144144
tracing-subscriber = "0.3.19"
145145
unsigned-varint = { version = "0.8.0" }

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
7878

7979
(In alphabetical order.)
8080

81+
- Elena Frank ([@elenaf9](https://github.com/elenaf9))
8182
- João Oliveira ([@jxs](https://github.com/jxs))
8283

8384
## Notable users

examples/autonatv2/Cargo.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,22 @@ name = "autonatv2_server"
1717
[dependencies]
1818
libp2p = { workspace = true, features = ["macros", "tokio", "tcp", "noise", "yamux", "autonat", "identify", "dns", "quic"] }
1919
clap = { version = "4.4.18", features = ["derive"] }
20-
tokio = { version = "1.35.1", features = ["macros", "rt-multi-thread"] }
20+
tokio = { version = "1.50.0", features = ["macros", "rt-multi-thread"] }
2121
tracing = "0.1.40"
2222
tracing-subscriber = { workspace = true, features = ["env-filter"] }
2323
rand = "0.8.5"
24-
opentelemetry_sdk = { version = "0.21.1", optional = true, features = ["rt-tokio"] }
25-
tracing-opentelemetry = { version = "0.22.0", optional = true }
26-
opentelemetry-jaeger = { version = "0.20.0", optional = true, features = ["rt-tokio"] }
24+
opentelemetry = { version = "0.27.0", optional = true }
25+
opentelemetry_sdk = { version = "0.27.0", optional = true, features = ["rt-tokio"] }
26+
opentelemetry-otlp = { version = "0.27.0", optional = true }
27+
tracing-opentelemetry = { version = "0.28.0", optional = true }
2728
cfg-if = "1.0.0"
2829

2930
[features]
30-
jaeger = ["opentelemetry_sdk", "tracing-opentelemetry", "opentelemetry-jaeger"]
31+
jaeger = ["opentelemetry", "opentelemetry_sdk", "opentelemetry-otlp", "tracing-opentelemetry"]
32+
opentelemetry = ["dep:opentelemetry"]
3133
opentelemetry_sdk = ["dep:opentelemetry_sdk"]
34+
opentelemetry-otlp = ["dep:opentelemetry-otlp"]
3235
tracing-opentelemetry = ["dep:tracing-opentelemetry"]
33-
opentelemetry-jaeger = ["dep:opentelemetry-jaeger"]
3436

3537
[lints]
3638
workspace = true
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
version: '3'
2-
31
services:
42
autonatv2:
53
build:
64
context: ../..
75
dockerfile: examples/autonatv2/Dockerfile
6+
environment:
7+
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
88
ports:
9-
- 4884:4884
9+
- "4884:4884"
10+
depends_on:
11+
- jaeger
1012
jaeger:
1113
image: jaegertracing/all-in-one
14+
environment:
15+
- COLLECTOR_OTLP_ENABLED=true
1216
ports:
13-
- 6831:6831/udp
14-
- 6832:6832/udp
15-
- 16686:16686
16-
- 14268:14268
17+
- "4317:4317"
18+
- "16686:16686"

examples/autonatv2/src/bin/autonatv2_server.rs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,24 @@ struct Opt {
2424
async fn main() -> Result<(), Box<dyn Error>> {
2525
cfg_if! {
2626
if #[cfg(feature = "jaeger")] {
27+
use opentelemetry::trace::TracerProvider as _;
28+
use opentelemetry::KeyValue;
29+
use opentelemetry_otlp::SpanExporter;
30+
use opentelemetry_sdk::{runtime, trace::TracerProvider};
2731
use tracing_subscriber::layer::SubscriberExt;
28-
use opentelemetry_sdk::runtime::Tokio;
29-
let tracer = opentelemetry_jaeger::new_agent_pipeline()
30-
.with_endpoint("jaeger:6831")
31-
.with_service_name("autonatv2")
32-
.install_batch(Tokio)?;
33-
let telemetry = tracing_opentelemetry::layer().with_tracer(tracer);
32+
33+
let provider = TracerProvider::builder()
34+
.with_batch_exporter(
35+
SpanExporter::builder().with_tonic().build()?,
36+
runtime::Tokio,
37+
)
38+
.with_resource(opentelemetry_sdk::Resource::new(vec![KeyValue::new(
39+
"service.name",
40+
"autonatv2",
41+
)]))
42+
.build();
43+
let telemetry = tracing_opentelemetry::layer()
44+
.with_tracer(provider.tracer("autonatv2"));
3445
let subscriber = tracing_subscriber::Registry::default()
3546
.with(telemetry);
3647
} else {

examples/browser-webrtc/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ release = false
1616
crate-type = ["cdylib"]
1717

1818
[dependencies]
19-
anyhow = "1.0.86"
19+
anyhow = "1.0.102"
2020
futures = { workspace = true }
2121
rand = "0.8"
2222
tracing = { workspace = true }
@@ -26,7 +26,7 @@ tracing-subscriber = { workspace = true, features = ["env-filter"] }
2626
axum = "0.7.5"
2727
libp2p = { path = "../../libp2p", features = [ "ed25519", "macros", "ping", "tokio"] }
2828
libp2p-webrtc = { workspace = true, features = ["tokio"] }
29-
rust-embed = { version = "8.4.0", features = ["include-exclude", "interpolate-folder-path"] }
29+
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"] }
3232
tower = "0.4"

examples/identify/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "MIT"
99
release = false
1010

1111
[dependencies]
12-
tokio = { version = "1.37.0", features = ["full"] }
12+
tokio = { version = "1.50.0", features = ["full"] }
1313
futures = { workspace = true }
1414
libp2p = { path = "../../libp2p", features = ["identify", "noise", "tcp", "tokio", "yamux"] }
1515
tracing-subscriber = { workspace = true, features = ["env-filter"] }

examples/ipfs-kad/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ release = false
1212
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1313
clap = { version = "4.5.6", features = ["derive"] }
1414
futures = { workspace = true }
15-
anyhow = "1.0.86"
15+
anyhow = "1.0.102"
1616
libp2p = { path = "../../libp2p", features = [ "tokio", "dns", "kad", "noise", "tcp", "yamux", "rsa"] }
1717
tracing-subscriber = { workspace = true, features = ["env-filter"] }
1818

examples/relay-server/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
clap = { version = "4.5.6", features = ["derive"] }
13-
tokio = { version = "1.37.0", features = ["full"] }
13+
tokio = { version = "1.50.0", features = ["full"] }
1414
futures = { workspace = true }
1515
libp2p = { path = "../../libp2p", features = ["tokio", "noise", "macros", "ping", "tcp", "identify", "yamux", "relay", "quic"] }
1616
tracing-subscriber = { workspace = true, features = ["env-filter"] }

0 commit comments

Comments
 (0)