diff --git a/Cargo.lock b/Cargo.lock index c693deb..174560b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1309,16 +1309,14 @@ checksum = "fc86cde3ff845662b8f4ef6cb50ea0e20c524eb3d29ae048287e06a1b3fa6a81" [[package]] name = "libp2p-identity" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2874d9c6575f1d7a151022af5c42bb0ffdcdfbafe0a6fd039de870b384835a2" +version = "0.2.2" +source = "git+https://github.com/fluencelabs/rust-libp2p.git?branch=rand-feature#ca5f61448ba5461c371783830b6f665ce5fd3ead" dependencies = [ "bs58 0.5.0", "ed25519-dalek", "log", "multihash 0.19.0", "quick-protobuf", - "rand 0.8.5", "sha2 0.10.7", "thiserror", "zeroize", diff --git a/Cargo.toml b/Cargo.toml index ed7d8a3..360f403 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,6 @@ members = [ [workspace.dependencies] libp2p-identity = { version = "0.2.1", default-features = false } + +[patch.crates-io] +libp2p-identity = { git = "https://github.com/fluencelabs/rust-libp2p.git", branch = "rand-feature" } diff --git a/keypair/Cargo.toml b/keypair/Cargo.toml index 0a5e646..ccaf6e2 100644 --- a/keypair/Cargo.toml +++ b/keypair/Cargo.toml @@ -27,7 +27,7 @@ ring = { version = "0.16.9", features = ["alloc", "std"], default-features = fal [features] default = ["rand"] -rand = ["dep:rand", "ed25519-dalek/rand_core"] +rand = ["dep:rand", "ed25519-dalek/rand_core", "libp2p-identity/rand"] [dev-dependencies] quickcheck = "1.0.3"