8c94ac5ca2230aac99083f0f7a2b01d900101116
[rust-lightning] / 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 chacha20;
9 #[cfg(not(feature = "fuzztarget"))]
10 pub(crate) mod poly1305;
11 pub(crate) mod chacha20poly1305rfc;
12 pub(crate) mod transaction_utils;
13
14 #[macro_use]
15 pub(crate) mod ser_macros;
16 #[macro_use]
17 pub(crate) mod macro_logger;
18
19 // These have to come after macro_logger to build
20 pub mod logger;
21 pub mod config;
22
23 #[cfg(test)]
24 pub(crate) mod test_utils;
25
26 /// impls of traits that add exra enforcement on the way they're called. Useful for detecting state
27 /// machine errors and used in fuzz targets and tests.
28 #[cfg(any(test, feature = "fuzztarget"))]
29 pub mod enforcing_trait_impls;
30
31 #[macro_use]
32 pub(crate) mod fuzz_wrappers;