Merge pull request #235 from TheBlueMatt/2018-10-229-redux
[rust-lightning] / src / util / mod.rs
1 //! Some utility modules live here. See individual sub-modules for more info.
2
3 pub mod events;
4 pub mod errors;
5 pub mod ser;
6
7 pub(crate) mod byte_utils;
8 pub(crate) mod chacha20poly1305rfc;
9 pub(crate) mod internal_traits;
10 pub(crate) mod rng;
11 pub(crate) mod transaction_utils;
12
13 #[macro_use]
14 pub(crate) mod ser_macros;
15 #[macro_use]
16 pub(crate) mod macro_logger;
17
18 // These have to come after macro_logger to build
19 pub mod logger;
20 pub mod config;
21
22 #[cfg(feature = "fuzztarget")]
23 pub mod sha2;
24 #[cfg(not(feature = "fuzztarget"))]
25 pub(crate) mod sha2;
26
27 #[cfg(feature = "fuzztarget")]
28 pub use self::rng::reset_rng_state;
29
30 #[cfg(test)]
31 pub(crate) mod test_utils;