Skip to content

Commit e8a97ec

Browse files
kamuik16jxs
authored andcommitted
chore: introduce libp2p-test-utils
Fixes libp2p#4992 Based on the conversation in libp2p#4992. Pull-Request: libp2p#5725.
1 parent 0dd0f27 commit e8a97ec

File tree

55 files changed

+192
-342
lines changed

Some content is hidden

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

55 files changed

+192
-342
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ members = [
3030
"misc/quickcheck-ext",
3131
"misc/rw-stream-sink",
3232
"misc/server",
33+
"misc/test-utils",
3334
"misc/webrtc-utils",
3435
"muxers/mplex",
3536
"muxers/test-harness",
@@ -113,6 +114,7 @@ libp2p-websocket = { version = "0.44.1", path = "transports/websocket" }
113114
libp2p-websocket-websys = { version = "0.4.1", path = "transports/websocket-websys" }
114115
libp2p-webtransport-websys = { version = "0.4.1", path = "transports/webtransport-websys" }
115116
libp2p-yamux = { version = "0.46.0", path = "muxers/yamux" }
117+
libp2p-test-utils = { version = "0.1.0", path = "misc/test-utils" }
116118

117119
# External dependencies
118120
async-std-resolver = { version = "0.25.0-alpha.4", default-features = false }
@@ -135,8 +137,8 @@ ring = "0.17.8"
135137
rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" }
136138
thiserror = "2"
137139
tokio = { version = "1.38", default-features = false }
138-
tracing = "0.1.37"
139-
tracing-subscriber = "0.3"
140+
tracing = "0.1.41"
141+
tracing-subscriber = "0.3.19"
140142
unsigned-varint = { version = "0.8.0" }
141143
web-time = "1.1.0"
142144

examples/autonatv2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ libp2p = { workspace = true, features = ["macros", "tokio", "tcp", "noise", "yam
1919
clap = { version = "4.4.18", features = ["derive"] }
2020
tokio = { version = "1.35.1", features = ["macros", "rt-multi-thread"] }
2121
tracing = "0.1.40"
22-
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
22+
tracing-subscriber = { workspace = true, features = ["env-filter"] }
2323
rand = "0.8.5"
2424
opentelemetry_sdk = { version = "0.21.1", optional = true, features = ["rt-tokio"] }
2525
tracing-opentelemetry = { version = "0.22.0", optional = true }

misc/multistream-select/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async-std = { version = "1.6.2", features = ["attributes"] }
2323
futures_ringbuf = "0.4.0"
2424
quickcheck = { workspace = true }
2525
rw-stream-sink = { workspace = true }
26-
tracing-subscriber = { workspace = true, features = ["env-filter"] }
26+
libp2p-test-utils = { workspace = true }
2727

2828
# Passing arguments to the docsrs builder in order to properly document cfg's.
2929
# More information: https://docs.rs/about/builds#cross-compiling

0 commit comments

Comments
 (0)