blake3 - add patch to support vesions of rand/rand-chacha in Debian.
Peter Michael Green
2 years ago
7 | 7 |
* Adjust dependencies to match what is in Debian.
|
8 | 8 |
* Add reference_impl from upstream git, so the tests and benches
|
9 | 9 |
can run.
|
|
10 |
* Add patch based on a revert of an upstream commit to support versions
|
|
11 |
of rand and rand-chacha in Debian.
|
10 | 12 |
|
11 | 13 |
-- Peter Michael Green <plugwash@debian.org> Sat, 18 Dec 2021 23:35:21 +0000
|
12 | 14 |
|
9 | 9 |
-version = "0.4.1"
|
10 | 10 |
-
|
11 | 11 |
[dev-dependencies.rand]
|
12 | |
version = ">= 0.7, < 0.9"
|
|
12 |
version = "0.8.0"
|
13 | 13 |
|
14 | 14 |
Index: blake3/benches/bench.rs
|
15 | 15 |
===================================================================
|
23 | 23 |
optional = true
|
24 | 24 |
[dev-dependencies.hex]
|
25 | 25 |
version = "0.4.2"
|
26 | |
@@ -52,10 +52,10 @@ version = "0.4.2"
|
27 | |
version = "0.4.1"
|
28 | |
|
29 | |
[dev-dependencies.rand]
|
30 | |
-version = "0.8.0"
|
31 | |
+version = ">= 0.7, < 0.9"
|
32 | |
|
33 | |
[dev-dependencies.rand_chacha]
|
34 | |
-version = "0.3.0"
|
35 | |
+version = ">= 0.2, <0.4"
|
36 | |
[build-dependencies.cc]
|
37 | |
version = "1.0.4"
|
38 | |
|
|
0 |
Patch to support the versions of rand and rand-chacha in Debian
|
|
1 |
based on a revert of upstream commit 0872f98c151892b3b417eccbf22bc023a30433fb
|
|
2 |
|
|
3 |
Index: blake3/src/test.rs
|
|
4 |
===================================================================
|
|
5 |
--- blake3.orig/src/test.rs
|
|
6 |
+++ blake3/src/test.rs
|
|
7 |
@@ -429,7 +429,7 @@ fn test_fuzz_hasher() {
|
|
8 |
let mut total_input = 0;
|
|
9 |
// For each test, write 3 inputs of random length.
|
|
10 |
for _ in 0..3 {
|
|
11 |
- let input_len = rng.gen_range(0..(INPUT_MAX + 1));
|
|
12 |
+ let input_len = rng.gen_range(0, INPUT_MAX + 1);
|
|
13 |
#[cfg(feature = "std")]
|
|
14 |
dbg!(input_len);
|
|
15 |
let input = &input_buf[total_input..][..input_len];
|
|
16 |
Index: blake3/Cargo.toml
|
|
17 |
===================================================================
|
|
18 |
--- blake3.orig/Cargo.toml
|
|
19 |
+++ blake3/Cargo.toml
|
|
20 |
@@ -49,10 +49,10 @@ optional = true
|
|
21 |
version = "0.4.2"
|
|
22 |
|
|
23 |
[dev-dependencies.rand]
|
|
24 |
-version = "0.8.0"
|
|
25 |
+version = "0.7.2"
|
|
26 |
|
|
27 |
[dev-dependencies.rand_chacha]
|
|
28 |
-version = "0.3.0"
|
|
29 |
+version = "0.2.1"
|
|
30 |
[build-dependencies.cc]
|
|
31 |
version = "1.0.4"
|
|
32 |
|
1 | 1 |
fix-build.rs
|
2 | 2 |
eliminate-page-size
|
3 | 3 |
add-reference-impl
|
|
4 |
rand-0.7-chacha-0.2
|