Codebase list rust-libslirp / 32382c4
blake3 - add patch to support vesions of rand/rand-chacha in Debian. Peter Michael Green 2 years ago
5 changed file(s) with 37 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
77 * Adjust dependencies to match what is in Debian.
88 * Add reference_impl from upstream git, so the tests and benches
99 can run.
10 * Add patch based on a revert of an upstream commit to support versions
11 of rand and rand-chacha in Debian.
1012
1113 -- Peter Michael Green <plugwash@debian.org> Sat, 18 Dec 2021 23:35:21 +0000
1214
99 -version = "0.4.1"
1010 -
1111 [dev-dependencies.rand]
12 version = ">= 0.7, < 0.9"
12 version = "0.8.0"
1313
1414 Index: blake3/benches/bench.rs
1515 ===================================================================
2323 optional = true
2424 [dev-dependencies.hex]
2525 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
11 fix-build.rs
22 eliminate-page-size
33 add-reference-impl
4 rand-0.7-chacha-0.2