From c92966d7843e5a107dcb77f2fd75166a6039730e Mon Sep 17 00:00:00 2001 From: DrHuangMHT Date: Sun, 7 Apr 2024 00:23:45 +0800 Subject: [PATCH] deps: Promote tracing to workspace dependency Promote tracing to workspace dependency to make mananging depencencies easier. Pull-Request: #5231. --- Cargo.toml | 1 + core/Cargo.toml | 2 +- examples/autonat/Cargo.toml | 2 +- examples/browser-webrtc/Cargo.toml | 2 +- examples/chat/Cargo.toml | 2 +- examples/dcutr/Cargo.toml | 2 +- examples/distributed-key-value-store/Cargo.toml | 2 +- examples/file-sharing/Cargo.toml | 2 +- examples/identify/Cargo.toml | 2 +- examples/ipfs-kad/Cargo.toml | 2 +- examples/ipfs-private/Cargo.toml | 2 +- examples/metrics/Cargo.toml | 2 +- examples/ping/Cargo.toml | 2 +- examples/relay-server/Cargo.toml | 2 +- examples/rendezvous/Cargo.toml | 2 +- examples/stream/Cargo.toml | 2 +- hole-punching-tests/Cargo.toml | 2 +- identity/Cargo.toml | 2 +- interop-tests/Cargo.toml | 4 ++-- misc/memory-connection-limits/Cargo.toml | 2 +- misc/multistream-select/Cargo.toml | 2 +- misc/server/Cargo.toml | 2 +- misc/webrtc-utils/Cargo.toml | 2 +- muxers/mplex/Cargo.toml | 2 +- muxers/test-harness/Cargo.toml | 2 +- muxers/yamux/Cargo.toml | 2 +- protocols/autonat/Cargo.toml | 2 +- protocols/dcutr/Cargo.toml | 2 +- protocols/floodsub/Cargo.toml | 2 +- protocols/gossipsub/Cargo.toml | 2 +- protocols/identify/Cargo.toml | 2 +- protocols/kad/Cargo.toml | 2 +- protocols/mdns/Cargo.toml | 2 +- protocols/perf/Cargo.toml | 2 +- protocols/ping/Cargo.toml | 2 +- protocols/relay/Cargo.toml | 2 +- protocols/rendezvous/Cargo.toml | 2 +- protocols/request-response/Cargo.toml | 2 +- protocols/stream/Cargo.toml | 2 +- protocols/upnp/Cargo.toml | 2 +- swarm-test/Cargo.toml | 2 +- swarm/Cargo.toml | 2 +- transports/dns/Cargo.toml | 2 +- transports/noise/Cargo.toml | 2 +- transports/plaintext/Cargo.toml | 2 +- transports/pnet/Cargo.toml | 2 +- transports/quic/Cargo.toml | 2 +- transports/tcp/Cargo.toml | 2 +- transports/uds/Cargo.toml | 2 +- transports/webrtc-websys/Cargo.toml | 2 +- transports/webrtc/Cargo.toml | 2 +- transports/websocket-websys/Cargo.toml | 2 +- transports/websocket/Cargo.toml | 2 +- transports/webtransport-websys/Cargo.toml | 2 +- 54 files changed, 55 insertions(+), 54 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c1f39ec74c5..da05125aa2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -123,6 +123,7 @@ quick-protobuf-codec = { version = "0.3.1", path = "misc/quick-protobuf-codec" } quickcheck = { package = "quickcheck-ext", path = "misc/quickcheck-ext" } rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" } unsigned-varint = { version = "0.8.0" } +tracing = "0.1.37" [patch.crates-io] diff --git a/core/Cargo.toml b/core/Cargo.toml index 582746d4037..65b7728b7ba 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -29,7 +29,7 @@ rw-stream-sink = { workspace = true } serde = { version = "1", optional = true, features = ["derive"] } smallvec = "1.13.2" thiserror = "1.0" -tracing = "0.1.37" +tracing = { workspace = true } unsigned-varint = { workspace = true } void = "1" diff --git a/examples/autonat/Cargo.toml b/examples/autonat/Cargo.toml index b5c314414f7..f128347bf04 100644 --- a/examples/autonat/Cargo.toml +++ b/examples/autonat/Cargo.toml @@ -13,7 +13,7 @@ tokio = { version = "1.37", features = ["full"] } clap = { version = "4.5.4", features = ["derive"] } futures = "0.3.30" libp2p = { path = "../../libp2p", features = ["tokio", "tcp", "noise", "yamux", "autonat", "identify", "macros"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/browser-webrtc/Cargo.toml b/examples/browser-webrtc/Cargo.toml index ef7fab331a3..f5a70cfd865 100644 --- a/examples/browser-webrtc/Cargo.toml +++ b/examples/browser-webrtc/Cargo.toml @@ -19,7 +19,7 @@ crate-type = ["cdylib"] anyhow = "1.0.81" futures = "0.3.30" rand = "0.8" -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] diff --git a/examples/chat/Cargo.toml b/examples/chat/Cargo.toml index 4fb0243dd90..d6f083962f7 100644 --- a/examples/chat/Cargo.toml +++ b/examples/chat/Cargo.toml @@ -13,7 +13,7 @@ tokio = { version = "1.37", features = ["full"] } async-trait = "0.1" futures = "0.3.30" libp2p = { path = "../../libp2p", features = [ "tokio", "gossipsub", "mdns", "noise", "macros", "tcp", "yamux", "quic"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/dcutr/Cargo.toml b/examples/dcutr/Cargo.toml index 17227586951..3d4d3a5c154 100644 --- a/examples/dcutr/Cargo.toml +++ b/examples/dcutr/Cargo.toml @@ -15,7 +15,7 @@ futures-timer = "3.0" libp2p = { path = "../../libp2p", features = [ "dns", "dcutr", "identify", "macros", "noise", "ping", "quic", "relay", "rendezvous", "tcp", "tokio", "yamux"] } log = "0.4" tokio = { version = "1.37", features = ["macros", "net", "rt", "signal"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/distributed-key-value-store/Cargo.toml b/examples/distributed-key-value-store/Cargo.toml index a7efe3c0697..809a573cc08 100644 --- a/examples/distributed-key-value-store/Cargo.toml +++ b/examples/distributed-key-value-store/Cargo.toml @@ -13,7 +13,7 @@ async-std = { version = "1.12", features = ["attributes"] } async-trait = "0.1" futures = "0.3.30" libp2p = { path = "../../libp2p", features = [ "async-std", "dns", "kad", "mdns", "noise", "macros", "tcp", "yamux"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/file-sharing/Cargo.toml b/examples/file-sharing/Cargo.toml index fdade7933cc..fdc4c7b26fd 100644 --- a/examples/file-sharing/Cargo.toml +++ b/examples/file-sharing/Cargo.toml @@ -14,7 +14,7 @@ tokio = { version = "1.37.0", features = ["full"] } clap = { version = "4.5.4", features = ["derive"] } futures = "0.3.30" libp2p = { path = "../../libp2p", features = [ "tokio", "cbor", "dns", "kad", "noise", "macros", "request-response", "tcp", "websocket", "yamux"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } void = "1.0.2" diff --git a/examples/identify/Cargo.toml b/examples/identify/Cargo.toml index 2dcc780ac22..cf2996e45cd 100644 --- a/examples/identify/Cargo.toml +++ b/examples/identify/Cargo.toml @@ -13,7 +13,7 @@ async-std = { version = "1.12", features = ["attributes"] } async-trait = "0.1" futures = "0.3.30" libp2p = { path = "../../libp2p", features = ["async-std", "dns", "dcutr", "identify", "macros", "noise", "ping", "relay", "rendezvous", "tcp", "tokio","yamux"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/ipfs-kad/Cargo.toml b/examples/ipfs-kad/Cargo.toml index 106faff77b6..d27c68c0e59 100644 --- a/examples/ipfs-kad/Cargo.toml +++ b/examples/ipfs-kad/Cargo.toml @@ -16,7 +16,7 @@ env_logger = "0.10" futures = "0.3.30" anyhow = "1.0.81" libp2p = { path = "../../libp2p", features = [ "tokio", "dns", "kad", "noise", "tcp", "yamux", "rsa"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/ipfs-private/Cargo.toml b/examples/ipfs-private/Cargo.toml index ccfe7484f6a..cf0d2689ced 100644 --- a/examples/ipfs-private/Cargo.toml +++ b/examples/ipfs-private/Cargo.toml @@ -14,7 +14,7 @@ async-trait = "0.1" either = "1.9" futures = "0.3.30" libp2p = { path = "../../libp2p", features = [ "tokio", "gossipsub", "dns", "identify", "kad", "macros", "noise", "ping", "pnet", "tcp", "websocket", "yamux"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/metrics/Cargo.toml b/examples/metrics/Cargo.toml index 188121fb7d0..e84b4819897 100644 --- a/examples/metrics/Cargo.toml +++ b/examples/metrics/Cargo.toml @@ -17,7 +17,7 @@ opentelemetry-otlp = { version = "0.15.0", features = ["metrics"] } opentelemetry_sdk = { version = "0.22.1", features = ["rt-tokio", "metrics"] } prometheus-client = { workspace = true } tokio = { version = "1", features = ["full"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-opentelemetry = "0.23.0" tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/ping/Cargo.toml b/examples/ping/Cargo.toml index 3ba28b54a5c..6c74f4619fd 100644 --- a/examples/ping/Cargo.toml +++ b/examples/ping/Cargo.toml @@ -12,7 +12,7 @@ release = false futures = "0.3.30" libp2p = { path = "../../libp2p", features = ["noise", "ping", "tcp", "tokio", "yamux"] } tokio = { version = "1.37.0", features = ["full"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/relay-server/Cargo.toml b/examples/relay-server/Cargo.toml index b06b4adc11f..664c52351cb 100644 --- a/examples/relay-server/Cargo.toml +++ b/examples/relay-server/Cargo.toml @@ -14,7 +14,7 @@ async-std = { version = "1.12", features = ["attributes"] } async-trait = "0.1" futures = "0.3.30" libp2p = { path = "../../libp2p", features = [ "async-std", "noise", "macros", "ping", "tcp", "identify", "yamux", "relay", "quic"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/rendezvous/Cargo.toml b/examples/rendezvous/Cargo.toml index 14ce7d58012..aecacbd7fa6 100644 --- a/examples/rendezvous/Cargo.toml +++ b/examples/rendezvous/Cargo.toml @@ -14,7 +14,7 @@ async-trait = "0.1" futures = "0.3.30" libp2p = { path = "../../libp2p", features = [ "async-std", "identify", "macros", "noise", "ping", "rendezvous", "tcp", "tokio", "yamux"] } tokio = { version = "1.37", features = ["rt-multi-thread", "macros", "time"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/examples/stream/Cargo.toml b/examples/stream/Cargo.toml index 64ca12fbb46..1e33991f27e 100644 --- a/examples/stream/Cargo.toml +++ b/examples/stream/Cargo.toml @@ -15,7 +15,7 @@ libp2p = { path = "../../libp2p", features = [ "tokio", "quic"] } libp2p-stream = { path = "../../protocols/stream", version = "0.1.0-alpha" } rand = "0.8" tokio = { version = "1.37", features = ["full"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [lints] diff --git a/hole-punching-tests/Cargo.toml b/hole-punching-tests/Cargo.toml index 7c372e23bee..75ed1e31ebe 100644 --- a/hole-punching-tests/Cargo.toml +++ b/hole-punching-tests/Cargo.toml @@ -10,7 +10,7 @@ anyhow = "1" env_logger = "0.10.2" futures = "0.3.30" libp2p = { path = "../libp2p", features = ["tokio", "dcutr", "identify", "macros", "noise", "ping", "relay", "tcp", "yamux", "quic"] } -tracing = "0.1.37" +tracing = { workspace = true } redis = { version = "0.23.0", default-features = false, features = ["tokio-comp"] } tokio = { version = "1.37.0", features = ["full"] } serde = { version = "1.0.197", features = ["derive"] } diff --git a/identity/Cargo.toml b/identity/Cargo.toml index e4d3b1f4dc2..217044d0fcd 100644 --- a/identity/Cargo.toml +++ b/identity/Cargo.toml @@ -17,7 +17,7 @@ bs58 = { version = "0.5.1", optional = true } ed25519-dalek = { version = "2.1", optional = true } hkdf = { version = "0.12.4", optional = true } libsecp256k1 = { version = "0.7.0", optional = true } -tracing = "0.1.37" +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 = "0.8.1" diff --git a/interop-tests/Cargo.toml b/interop-tests/Cargo.toml index 5d15fd5a9f0..9bb08682d6f 100644 --- a/interop-tests/Cargo.toml +++ b/interop-tests/Cargo.toml @@ -17,7 +17,7 @@ either = "1.9.0" futures = "0.3.30" rand = "0.8.5" serde = { version = "1", features = ["derive"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] @@ -36,7 +36,7 @@ serde_json = "1" thirtyfour = "=0.32.0-rc.10" # https://github.com/stevepryde/thirtyfour/issues/169 tokio = { version = "1.37.0", features = ["full"] } tower-http = { version = "0.5", features = ["cors", "fs", "trace"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } [target.'cfg(target_arch = "wasm32")'.dependencies] diff --git a/misc/memory-connection-limits/Cargo.toml b/misc/memory-connection-limits/Cargo.toml index ae6bb386373..5f8d9b91613 100644 --- a/misc/memory-connection-limits/Cargo.toml +++ b/misc/memory-connection-limits/Cargo.toml @@ -15,7 +15,7 @@ libp2p-core = { workspace = true } libp2p-swarm = { workspace = true } libp2p-identity = { workspace = true, features = ["peerid"] } sysinfo = "0.29" -tracing = "0.1.37" +tracing = { workspace = true } void = "1" [dev-dependencies] diff --git a/misc/multistream-select/Cargo.toml b/misc/multistream-select/Cargo.toml index 37b5f7753f2..080bd6ee289 100644 --- a/misc/multistream-select/Cargo.toml +++ b/misc/multistream-select/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] bytes = "1" futures = "0.3" -tracing = "0.1.37" +tracing = { workspace = true } pin-project = "1.1.5" smallvec = "1.13.2" unsigned-varint = { workspace = true } diff --git a/misc/server/Cargo.toml b/misc/server/Cargo.toml index 6f9f37571a7..74576ad39f5 100644 --- a/misc/server/Cargo.toml +++ b/misc/server/Cargo.toml @@ -22,7 +22,7 @@ serde = "1.0.197" serde_derive = "1.0.125" serde_json = "1.0" tokio = { version = "1", features = ["rt-multi-thread", "macros"] } -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } zeroize = "1" diff --git a/misc/webrtc-utils/Cargo.toml b/misc/webrtc-utils/Cargo.toml index 7173dedae7b..b28ed74a4b0 100644 --- a/misc/webrtc-utils/Cargo.toml +++ b/misc/webrtc-utils/Cargo.toml @@ -25,7 +25,7 @@ serde = { version = "1.0", features = ["derive"] } sha2 = "0.10.8" thiserror = "1" tinytemplate = "1.2" -tracing = "0.1.37" +tracing = { workspace = true } [dev-dependencies] hex-literal = "0.4" diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml index 3ce7dc5c02f..4e612939373 100644 --- a/muxers/mplex/Cargo.toml +++ b/muxers/mplex/Cargo.toml @@ -20,7 +20,7 @@ nohash-hasher = "0.2" parking_lot = "0.12" rand = "0.8" smallvec = "1.13.2" -tracing = "0.1.37" +tracing = { workspace = true } unsigned-varint = { workspace = true, features = ["asynchronous_codec"] } [dev-dependencies] diff --git a/muxers/test-harness/Cargo.toml b/muxers/test-harness/Cargo.toml index bfe1e61b9b6..421292cf0a7 100644 --- a/muxers/test-harness/Cargo.toml +++ b/muxers/test-harness/Cargo.toml @@ -15,7 +15,7 @@ libp2p-core = { workspace = true } futures = "0.3.30" futures-timer = "3.0.3" futures_ringbuf = "0.4.0" -tracing = "0.1.37" +tracing = { workspace = true } [lints] workspace = true diff --git a/muxers/yamux/Cargo.toml b/muxers/yamux/Cargo.toml index 14a5c0fe145..7c36faf022a 100644 --- a/muxers/yamux/Cargo.toml +++ b/muxers/yamux/Cargo.toml @@ -17,7 +17,7 @@ libp2p-core = { workspace = true } thiserror = "1.0" yamux012 = { version = "0.12.1", package = "yamux" } yamux013 = { version = "0.13.1", package = "yamux" } -tracing = "0.1.37" +tracing = { workspace = true } [dev-dependencies] async-std = { version = "1.7.0", features = ["attributes"] } diff --git a/protocols/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index fce64ad0c12..2780016cebd 100644 --- a/protocols/autonat/Cargo.toml +++ b/protocols/autonat/Cargo.toml @@ -21,7 +21,7 @@ libp2p-request-response = { workspace = true } libp2p-identity = { workspace = true } quick-protobuf = "0.8" rand = "0.8" -tracing = "0.1.37" +tracing = { workspace = true } quick-protobuf-codec = { workspace = true } asynchronous-codec = { workspace = true } diff --git a/protocols/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index c6975337557..414eff4775b 100644 --- a/protocols/dcutr/Cargo.toml +++ b/protocols/dcutr/Cargo.toml @@ -22,7 +22,7 @@ libp2p-identity = { workspace = true } quick-protobuf = "0.8" quick-protobuf-codec = { workspace = true } thiserror = "1.0" -tracing = "0.1.37" +tracing = { workspace = true } void = "1" lru = "0.12.3" futures-bounded = { workspace = true } diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml index 98e7cc7fd49..fe1b509735d 100644 --- a/protocols/floodsub/Cargo.toml +++ b/protocols/floodsub/Cargo.toml @@ -24,7 +24,7 @@ quick-protobuf-codec = { workspace = true } rand = "0.8" smallvec = "1.13.2" thiserror = "1.0.58" -tracing = "0.1.37" +tracing = { workspace = true } # Passing arguments to the docsrs builder in order to properly document cfg's. # More information: https://docs.rs/about/builds#cross-compiling diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index 8615b99f7e5..22e11180439 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -35,7 +35,7 @@ regex = "1.10.4" serde = { version = "1", optional = true, features = ["derive"] } sha2 = "0.10.8" smallvec = "1.13.2" -tracing = "0.1.37" +tracing = { workspace = true } void = "1.0.2" # Metrics dependencies diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index db42f4b9df2..a794d1e0409 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -23,7 +23,7 @@ quick-protobuf-codec = { workspace = true } quick-protobuf = "0.8" smallvec = "1.13.2" thiserror = "1.0" -tracing = "0.1.37" +tracing = { workspace = true } void = "1.0" either = "1.9.0" diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index 5b46642d1ea..fb89337b61e 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -32,7 +32,7 @@ futures-timer = "3.0.3" instant = "0.1.12" serde = { version = "1.0", optional = true, features = ["derive"] } thiserror = "1" -tracing = "0.1.37" +tracing = { workspace = true } [dev-dependencies] async-std = { version = "1.12.0", features = ["attributes"] } diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index 3d40e2dfe71..c2dba2cf2f6 100644 --- a/protocols/mdns/Cargo.toml +++ b/protocols/mdns/Cargo.toml @@ -23,7 +23,7 @@ rand = "0.8.3" smallvec = "1.13.2" socket2 = { version = "0.5.6", features = ["all"] } tokio = { version = "1.37", default-features = false, features = ["net", "time"], optional = true} -tracing = "0.1.37" +tracing = { workspace = true } hickory-proto = { version = "0.24.0", default-features = false, features = ["mdns"] } void = "1.0.2" diff --git a/protocols/perf/Cargo.toml b/protocols/perf/Cargo.toml index 599c8c21fb2..b73c7d599cb 100644 --- a/protocols/perf/Cargo.toml +++ b/protocols/perf/Cargo.toml @@ -29,7 +29,7 @@ libp2p-yamux = { workspace = true } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" thiserror = "1.0" -tracing = "0.1.37" +tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } tokio = { version = "1.37", default-features = false, features = ["macros", "rt", "rt-multi-thread"] } void = "1" diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml index da67b894963..5d982c90b7f 100644 --- a/protocols/ping/Cargo.toml +++ b/protocols/ping/Cargo.toml @@ -19,7 +19,7 @@ libp2p-core = { workspace = true } libp2p-swarm = { workspace = true } libp2p-identity = { workspace = true } rand = "0.8" -tracing = "0.1.37" +tracing = { workspace = true } void = "1.0" [dev-dependencies] diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index b3e9fe4d8dd..4183e0facd3 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -26,7 +26,7 @@ quick-protobuf-codec = { workspace = true } rand = "0.8.4" static_assertions = "1" thiserror = "1.0" -tracing = "0.1.37" +tracing = { workspace = true } void = "1" [dev-dependencies] diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index 5c7d69810b3..e2424a9258b 100644 --- a/protocols/rendezvous/Cargo.toml +++ b/protocols/rendezvous/Cargo.toml @@ -25,7 +25,7 @@ quick-protobuf = "0.8" quick-protobuf-codec = { workspace = true } rand = "0.8" thiserror = "1" -tracing = "0.1.37" +tracing = { workspace = true } void = "1" [dev-dependencies] diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml index ecfd01be945..c3c43eec286 100644 --- a/protocols/request-response/Cargo.toml +++ b/protocols/request-response/Cargo.toml @@ -22,7 +22,7 @@ rand = "0.8" serde = { version = "1.0", optional = true} serde_json = { version = "1.0.115", optional = true } smallvec = "1.13.2" -tracing = "0.1.37" +tracing = { workspace = true } void = "1.0.2" futures-timer = "3.0.3" futures-bounded = { workspace = true } diff --git a/protocols/stream/Cargo.toml b/protocols/stream/Cargo.toml index 6a39794c196..f58daff0bb6 100644 --- a/protocols/stream/Cargo.toml +++ b/protocols/stream/Cargo.toml @@ -14,7 +14,7 @@ futures = "0.3.29" libp2p-core = { workspace = true } libp2p-identity = { workspace = true, features = ["peerid"] } libp2p-swarm = { workspace = true } -tracing = "0.1.37" +tracing = { workspace = true } void = "1" rand = "0.8" diff --git a/protocols/upnp/Cargo.toml b/protocols/upnp/Cargo.toml index d1fec8651d5..116941cb75f 100644 --- a/protocols/upnp/Cargo.toml +++ b/protocols/upnp/Cargo.toml @@ -17,7 +17,7 @@ igd-next = "0.14.3" libp2p-core = { workspace = true } libp2p-swarm = { workspace = true } tokio = { version = "1.37", default-features = false, features = ["rt"], optional = true } -tracing = "0.1.37" +tracing = { workspace = true } void = "1.0.2" [features] diff --git a/swarm-test/Cargo.toml b/swarm-test/Cargo.toml index 8fff18b5d0c..ad7b05264b8 100644 --- a/swarm-test/Cargo.toml +++ b/swarm-test/Cargo.toml @@ -21,7 +21,7 @@ libp2p-tcp = { workspace = true, features = ["async-io"] } libp2p-yamux = { workspace = true } futures = "0.3.30" rand = "0.8.5" -tracing = "0.1.37" +tracing = { workspace = true } futures-timer = "3.0.3" [lints] diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml index fc4094f16ab..3601e03d368 100644 --- a/swarm/Cargo.toml +++ b/swarm/Cargo.toml @@ -25,7 +25,7 @@ multistream-select = { workspace = true } once_cell = "1.19.0" rand = "0.8" smallvec = "1.13.2" -tracing = "0.1.37" +tracing = { workspace = true } void = "1" wasm-bindgen-futures = { version = "0.4.42", optional = true } diff --git a/transports/dns/Cargo.toml b/transports/dns/Cargo.toml index a6061339197..b06ab6d7d8b 100644 --- a/transports/dns/Cargo.toml +++ b/transports/dns/Cargo.toml @@ -19,7 +19,7 @@ libp2p-identity = { workspace = true } parking_lot = "0.12.0" hickory-resolver = { version = "0.24.0", default-features = false, features = ["system-config"] } smallvec = "1.13.2" -tracing = "0.1.37" +tracing = { workspace = true } [dev-dependencies] libp2p-identity = { workspace = true, features = ["rand"] } diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index 02bd46550e5..130fce156a9 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -23,7 +23,7 @@ rand = "0.8.3" sha2 = "0.10.8" static_assertions = "1" thiserror = "1.0.58" -tracing = "0.1.37" +tracing = { workspace = true } x25519-dalek = "2" zeroize = "1" diff --git a/transports/plaintext/Cargo.toml b/transports/plaintext/Cargo.toml index e3f1e280851..9a4576ef29f 100644 --- a/transports/plaintext/Cargo.toml +++ b/transports/plaintext/Cargo.toml @@ -17,7 +17,7 @@ futures = "0.3.30" libp2p-core = { workspace = true } libp2p-identity = { workspace = true } quick-protobuf = "0.8" -tracing = "0.1.37" +tracing = { workspace = true } quick-protobuf-codec = { workspace = true } [dev-dependencies] diff --git a/transports/pnet/Cargo.toml b/transports/pnet/Cargo.toml index 294d11af14e..e13d9dbd0d4 100644 --- a/transports/pnet/Cargo.toml +++ b/transports/pnet/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] futures = "0.3.30" salsa20 = "0.10" sha3 = "0.10" -tracing = "0.1.37" +tracing = { workspace = true } rand = "0.8" pin-project = "1.1.5" diff --git a/transports/quic/Cargo.toml b/transports/quic/Cargo.toml index 52483cbcccd..f6fad337bb7 100644 --- a/transports/quic/Cargo.toml +++ b/transports/quic/Cargo.toml @@ -23,7 +23,7 @@ rand = "0.8.5" rustls = { version = "0.21.9", default-features = false } thiserror = "1.0.58" tokio = { version = "1.37.0", default-features = false, features = ["net", "rt", "time"], optional = true } -tracing = "0.1.37" +tracing = { workspace = true } socket2 = "0.5.6" ring = "0.16.20" diff --git a/transports/tcp/Cargo.toml b/transports/tcp/Cargo.toml index 9cedec22374..2b6ecf7189b 100644 --- a/transports/tcp/Cargo.toml +++ b/transports/tcp/Cargo.toml @@ -20,7 +20,7 @@ libp2p-core = { workspace = true } libp2p-identity = { workspace = true } socket2 = { version = "0.5.6", features = ["all"] } tokio = { version = "1.37.0", default-features = false, features = ["net"], optional = true } -tracing = "0.1.37" +tracing = { workspace = true } [features] tokio = ["dep:tokio", "if-watch/tokio"] diff --git a/transports/uds/Cargo.toml b/transports/uds/Cargo.toml index b9ae6af7425..b99e869b1df 100644 --- a/transports/uds/Cargo.toml +++ b/transports/uds/Cargo.toml @@ -15,7 +15,7 @@ async-std = { version = "1.6.2", optional = true } libp2p-core = { workspace = true } futures = "0.3.30" tokio = { version = "1.37", default-features = false, features = ["net"], optional = true } -tracing = "0.1.37" +tracing = { workspace = true } [dev-dependencies] tempfile = "3.10" diff --git a/transports/webrtc-websys/Cargo.toml b/transports/webrtc-websys/Cargo.toml index eb41d1fa3d4..12d825b2ce7 100644 --- a/transports/webrtc-websys/Cargo.toml +++ b/transports/webrtc-websys/Cargo.toml @@ -22,7 +22,7 @@ libp2p-identity = { workspace = true } libp2p-webrtc-utils = { workspace = true } send_wrapper = { version = "0.6.0", features = ["futures"] } thiserror = "1" -tracing = "0.1.37" +tracing = { workspace = true } wasm-bindgen = { version = "0.2.90" } wasm-bindgen-futures = { version = "0.4.42" } web-sys = { version = "0.3.69", features = ["Document", "Location", "MessageEvent", "Navigator", "RtcCertificate", "RtcConfiguration", "RtcDataChannel", "RtcDataChannelEvent", "RtcDataChannelInit", "RtcDataChannelState", "RtcDataChannelType", "RtcPeerConnection", "RtcSdpType", "RtcSessionDescription", "RtcSessionDescriptionInit", "Window"] } diff --git a/transports/webrtc/Cargo.toml b/transports/webrtc/Cargo.toml index 883d5c92a6c..d9d7f8c97d6 100644 --- a/transports/webrtc/Cargo.toml +++ b/transports/webrtc/Cargo.toml @@ -30,7 +30,7 @@ thiserror = "1" tinytemplate = "1.2" tokio = { version = "1.37", features = ["net"], optional = true } tokio-util = { version = "0.7", features = ["compat"], optional = true } -tracing = "0.1.37" +tracing = { workspace = true } webrtc = { version = "0.9.0", optional = true } [features] diff --git a/transports/websocket-websys/Cargo.toml b/transports/websocket-websys/Cargo.toml index 59807509c8b..7f3c64a826a 100644 --- a/transports/websocket-websys/Cargo.toml +++ b/transports/websocket-websys/Cargo.toml @@ -15,7 +15,7 @@ bytes = "1.6.0" futures = "0.3.30" js-sys = "0.3.69" libp2p-core = { workspace = true } -tracing = "0.1.37" +tracing = { workspace = true } parking_lot = "0.12.1" send_wrapper = "0.6.0" thiserror = "1.0.58" diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index 01a094f2e14..f04c42084c1 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -20,7 +20,7 @@ parking_lot = "0.12.0" pin-project-lite = "0.2.14" rw-stream-sink = { workspace = true } soketto = "0.8.0" -tracing = "0.1.37" +tracing = { workspace = true } url = "2.5" webpki-roots = "0.25" diff --git a/transports/webtransport-websys/Cargo.toml b/transports/webtransport-websys/Cargo.toml index 671f377d1d9..7d844684f0d 100644 --- a/transports/webtransport-websys/Cargo.toml +++ b/transports/webtransport-websys/Cargo.toml @@ -23,7 +23,7 @@ multiaddr = { workspace = true } multihash = { workspace = true } send_wrapper = { version = "0.6.0", features = ["futures"] } thiserror = "1.0.58" -tracing = "0.1.37" +tracing = { workspace = true } wasm-bindgen = "0.2.90" wasm-bindgen-futures = "0.4.42" web-sys = { version = "0.3.69", features = [