1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#![deny(missing_docs)]
pub mod dependencies {
pub use ::kitsune_p2p_proxy;
pub use ::kitsune_p2p_types;
pub use ::url2;
}
mod types;
pub use types::*;
pub mod gossip;
mod config;
pub use config::*;
mod spawn;
pub use spawn::*;
#[allow(missing_docs)]
#[cfg(feature = "test_utils")]
pub mod test_util;
#[cfg(test)]
#[cfg(feature = "test_utils")]
mod test;
pub mod fixt;
#[cfg(any(test, feature = "test_utils"))]
pub static NOISE: once_cell::sync::Lazy<Vec<u8>> = once_cell::sync::Lazy::new(|| {
use rand::Rng;
let mut rng = rand::thread_rng();
std::iter::repeat_with(|| rng.gen())
.take(10_000_000)
.collect()
});