Skip to content

Commit e41e428

Browse files
committed
Added fix for multiple versions of rand_core to benches.
1 parent ce3f8dc commit e41e428

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

benches/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ publish = false
88
# Option (requires nightly Rust): experimental SIMD support
99
simd_support = ["rand/simd_support"]
1010

11+
# Force chacha20 to use the local rand_code to avoid compiling two different "rand_core"s.
12+
# This is necessary even if the specified versions are the same.
13+
[patch.crates-io]
14+
rand_core = { path = "../rand_core" }
15+
1116
[dependencies]
1217

1318
[dev-dependencies]

0 commit comments

Comments
 (0)