Debian Codegraph @

debian/patches/1001_feature_fencing.patch

raw symbols SCIP
1 Descriptionscip-debian debian rust-nanorand 0.8.0+ds-5.1 rust-nanorand/patches/`1001_feature_fencing.patch`#Description.: fence tests by needed features
2 Authorscip-debian debian rust-nanorand 0.8.0+ds-5.1 rust-nanorand/patches/`1001_feature_fencing.patch`#Author.: Jonas Smedegaard <[email protected]scip-debian . . . identity/`[email protected]`.>
3 Last-Updatescip-debian debian rust-nanorand 0.8.0+ds-5.1 rust-nanorand/patches/`1001_feature_fencing.patch`#Last-Update.: 2026-03-10
4 ---
5 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
6 --- a/src/crypto/chacha.rsscip-debian debian rust-nanorand 0.8.0+ds-5.1 rust-nanorand/upstream/`src/crypto/chacha.rs`:
7 +++ b/src/crypto/chacha.rsscip-debian debian rust-nanorand 0.8.0+ds-5.1 rust-nanorand/upstream/`src/crypto/chacha.rs`:
8 @@ -87,6 +87,7 @@
9 }
10 }
11
12 +#[cfg(feature = "std")]
13 #[cfg(test)]
14 mod tests {
15 use super::*;
16 --- a/src/gen.rsscip-debian debian rust-nanorand 0.8.0+ds-5.1 rust-nanorand/upstream/`src/gen.rs`:
17 +++ b/src/gen.rsscip-debian debian rust-nanorand 0.8.0+ds-5.1 rust-nanorand/upstream/`src/gen.rs`:
18 @@ -117,6 +117,7 @@
19 #[cfg(target_pointer_width = "64")]
20 range!((usize, u128, isize));
21
22 +#[cfg(all(feature = "wyrand", any(feature = "entropy", feature = "getrandom")))]
23 #[cfg(test)]
24 mod tests {
25 use crate::{Rng, WyRand};
26 --- a/src/rand/chacha.rsscip-debian debian rust-nanorand 0.8.0+ds-5.1 rust-nanorand/upstream/`src/rand/chacha.rs`:
27 +++ b/src/rand/chacha.rsscip-debian debian rust-nanorand 0.8.0+ds-5.1 rust-nanorand/upstream/`src/rand/chacha.rs`:
28 @@ -59,6 +59,7 @@
29 }
30 }
31
32 +#[cfg(any(feature = "entropy", feature = "getrandom"))]
33 impl<const ROUNDS: u8> Rng<64> for ChaCha<ROUNDS> {
34 fn rand(&mut self) -> [u8; 64] {
35 let block = chacha::chacha_block::<ROUNDS>(self.state);
36 @@ -94,6 +95,7 @@
37 }
38 }
39
40 +#[cfg(any(feature = "entropy", feature = "getrandom"))]
41 impl<const ROUNDS: u8> SeedableRng<40, 64> for ChaCha<ROUNDS> {
42 fn reseed(&mut self, seed: [u8; 40]) {
43 let mut key = [0_u8; 32];