Patched libp2p-identity version that has feature-gated rand

This commit is contained in:
Ivan Boldyrev 2023-08-10 13:44:12 +04:00
parent 08b1879de9
commit d3d26717bd
3 changed files with 6 additions and 5 deletions

6
Cargo.lock generated
View File

@ -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",

View File

@ -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" }

View File

@ -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"