Add rand feature to tests where required

This commit is contained in:
Ivan Boldyrev
2023-10-10 18:00:36 +04:00
parent 50ec01cc31
commit fe1b8b7b8f
17 changed files with 19 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ async-std = { version = "1.6.3", features = ["unstable"] }
env_logger = "0.10.0"
hex = "0.4.2"
libp2p-core = { workspace = true }
libp2p-identity = { workspace = true, features = ["rand"] }
libp2p-yamux = { workspace = true }
libp2p-noise = { workspace = true }
libp2p-swarm-test = { path = "../../swarm-test" }

View File

@@ -39,6 +39,7 @@ async-std = { version = "1.12.0", features = ["attributes"] }
env_logger = "0.10.0"
futures-timer = "3.0"
libp2p-identify = { path = "../identify" }
libp2p-identity = { workspace = true, features = ["rand"] }
libp2p-noise = { workspace = true }
libp2p-swarm = { path = "../../swarm", features = ["macros"] }
libp2p-swarm-test = { path = "../../swarm-test" }

View File

@@ -35,6 +35,7 @@ void = "1"
[dev-dependencies]
rand = "0.8"
libp2p-identity = { workspace = true, features = ["rand"] }
libp2p-swarm-test = { path = "../../swarm-test" }
# Passing arguments to the docsrs builder in order to properly document cfg's.

View File

@@ -31,6 +31,7 @@ void = "1"
[dev-dependencies]
env_logger = "0.10.0"
libp2p-identity = { workspace = true, features = ["rand"] }
libp2p-ping = { workspace = true }
libp2p-plaintext = { workspace = true }
libp2p-swarm = { workspace = true, features = ["macros", "async-std"] }