diff --git a/core/Cargo.toml b/core/Cargo.toml index 15288a48..b1fd644f 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -39,7 +39,7 @@ libp2p-mplex = { path = "../muxers/mplex" } # Using `path` he libp2p-noise = { path = "../transports/noise" } # Using `path` here because this is a cyclic dev-dependency which otherwise breaks releasing. multihash = { workspace = true, features = ["arb"] } quickcheck = { workspace = true } -libp2p-identity = { workspace = true, features = ["ed25519"] } +libp2p-identity = { workspace = true, features = ["ed25519", "rand"] } [features] serde = ["multihash/serde-codec", "dep:serde", "libp2p-identity/serde"] diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index 0cb98409..661774dc 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -32,6 +32,9 @@ libp2p-swarm = { workspace = true } once_cell = "1.18.0" prometheus-client = { version = "0.21.2"} +[dev-dependencies] +libp2p-identity = { workspace = true, features = ["rand"] } + # Passing arguments to the docsrs builder in order to properly document cfg's. # More information: https://docs.rs/about/builds#cross-compiling [package.metadata.docs.rs] diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml index aca3ec6e..4501546a 100644 --- a/muxers/mplex/Cargo.toml +++ b/muxers/mplex/Cargo.toml @@ -28,6 +28,7 @@ async-std = { version = "1.7.0", features = ["attributes"] } criterion = "0.5" env_logger = "0.10" futures = "0.3" +libp2p-identity = { workspace = true, features = ["rand"] } libp2p-muxer-test-harness = { path = "../test-harness" } libp2p-plaintext = { workspace = true } libp2p-tcp = { workspace = true, features = ["async-io"] } diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index 4f9fd2fa..99fc32e8 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -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" } diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index f97f4ba0..a0889419 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -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" } diff --git a/protocols/perf/Cargo.toml b/protocols/perf/Cargo.toml index c61deb37..7d38d44b 100644 --- a/protocols/perf/Cargo.toml +++ b/protocols/perf/Cargo.toml @@ -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. diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index 03799a8c..7d04f8a2 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -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"] } diff --git a/transports/dns/Cargo.toml b/transports/dns/Cargo.toml index 1d5fb1bc..947feb16 100644 --- a/transports/dns/Cargo.toml +++ b/transports/dns/Cargo.toml @@ -23,6 +23,7 @@ smallvec = "1.11.1" [dev-dependencies] env_logger = "0.10" +libp2p-identity = { workspace = true, features = ["rand"] } tokio-crate = { package = "tokio", version = "1.0", default-features = false, features = ["rt", "time"] } async-std-crate = { package = "async-std", version = "1.6" } diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index 876a3cd3..70c01208 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -36,6 +36,7 @@ snow = { version = "0.9.2", features = ["default-resolver"], default-features = env_logger = "0.10.0" futures_ringbuf = "0.4.0" quickcheck = { workspace = true } +libp2p-identity = { workspace = true, features = ["rand"] } # 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/transports/plaintext/Cargo.toml b/transports/plaintext/Cargo.toml index f58fefb4..14c5fd71 100644 --- a/transports/plaintext/Cargo.toml +++ b/transports/plaintext/Cargo.toml @@ -22,7 +22,7 @@ unsigned-varint = { version = "0.7", features = ["asynchronous_codec"] } [dev-dependencies] env_logger = "0.10.0" -libp2p-identity = { workspace = true, features = ["ed25519"] } +libp2p-identity = { workspace = true, features = ["ed25519", "rand"] } quickcheck = { workspace = true } rand = "0.8" futures_ringbuf = "0.4.0" diff --git a/transports/pnet/Cargo.toml b/transports/pnet/Cargo.toml index c6dd93f6..9610170d 100644 --- a/transports/pnet/Cargo.toml +++ b/transports/pnet/Cargo.toml @@ -20,7 +20,7 @@ pin-project = "1.1.3" [dev-dependencies] libp2p-core = { workspace = true } -libp2p-identity = { workspace = true, features = ["ed25519", "rsa", "ecdsa","secp256k1"] } +libp2p-identity = { workspace = true, features = ["ed25519", "rsa", "ecdsa","secp256k1", "rand"] } libp2p-noise = { workspace = true } libp2p-swarm = { workspace = true, features = ["tokio"] } libp2p-tcp = { workspace = true, features = ["tokio"] } diff --git a/transports/quic/Cargo.toml b/transports/quic/Cargo.toml index 57c24067..7404ee51 100644 --- a/transports/quic/Cargo.toml +++ b/transports/quic/Cargo.toml @@ -41,6 +41,7 @@ rustc-args = ["--cfg", "docsrs"] [dev-dependencies] async-std = { version = "1.12.0", features = ["attributes"] } env_logger = "0.10.0" +libp2p-identity = { workspace = true, features = ["rand"] } libp2p-muxer-test-harness = { path = "../../muxers/test-harness" } libp2p-noise = { workspace = true } libp2p-tcp = { workspace = true, features = ["async-io"] } diff --git a/transports/tcp/Cargo.toml b/transports/tcp/Cargo.toml index a0097440..1bdd6577 100644 --- a/transports/tcp/Cargo.toml +++ b/transports/tcp/Cargo.toml @@ -28,6 +28,7 @@ async-io = ["dep:async-io", "if-watch/smol"] [dev-dependencies] async-std = { version = "1.6.5", features = ["attributes"] } +libp2p-identity = { workspace = true, features = ["rand"] } tokio = { version = "1.33.0", default-features = false, features = ["full"] } env_logger = "0.10.0" diff --git a/transports/tls/Cargo.toml b/transports/tls/Cargo.toml index 7c0ea41b..29928cc2 100644 --- a/transports/tls/Cargo.toml +++ b/transports/tls/Cargo.toml @@ -30,7 +30,7 @@ features = ["dangerous_configuration"] # Must enable this to allow for custom ve hex = "0.4.3" hex-literal = "0.4.1" libp2p-core = { workspace = true } -libp2p-identity = { workspace = true, features = ["ed25519", "rsa", "secp256k1", "ecdsa"] } +libp2p-identity = { workspace = true, features = ["ed25519", "rsa", "secp256k1", "ecdsa", "rand"] } libp2p-swarm = { workspace = true, features = ["tokio"] } libp2p-yamux = { workspace = true } tokio = { version = "1.33.0", features = ["full"] } diff --git a/transports/webrtc/Cargo.toml b/transports/webrtc/Cargo.toml index b9b181a5..9b2b0326 100644 --- a/transports/webrtc/Cargo.toml +++ b/transports/webrtc/Cargo.toml @@ -39,6 +39,7 @@ pem = ["webrtc?/pem"] [dev-dependencies] env_logger = "0.10" +libp2p-identity = { workspace = true, features = ["rand"] } tokio = { version = "1.33", features = ["full"] } quickcheck = "1.0.3" diff --git a/transports/websocket-websys/Cargo.toml b/transports/websocket-websys/Cargo.toml index 985896ad..3f7b5d76 100644 --- a/transports/websocket-websys/Cargo.toml +++ b/transports/websocket-websys/Cargo.toml @@ -32,4 +32,4 @@ rustc-args = ["--cfg", "docsrs"] [dev-dependencies] libp2p-yamux = { workspace = true } libp2p-noise = { workspace = true } -libp2p-identity = { workspace = true } +libp2p-identity = { workspace = true, features = ["rand"] } diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index 62a5129c..3dc3a710 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -27,6 +27,7 @@ webpki-roots = "0.25" [dev-dependencies] libp2p-tcp = { workspace = true, features = ["async-io"] } libp2p-dns = { workspace = true, features = ["async-std"] } +libp2p-identity = { workspace = true, features = ["rand"] } async-std = { version = "1.6.5", features = ["attributes"] } rcgen = "0.10.0"