Merge pull request #309 from TheBlueMatt/2019-02-306-nits
[rust-lightning] / src / util / mod.rs
index 0e92a2b27e4804bd7ddb14608c75fe1fddbad798..e4170590d1003045deb0cd2567ff70e71aa461a9 100644 (file)
@@ -1,9 +1,32 @@
-pub mod transaction_utils;
+//! Some utility modules live here. See individual sub-modules for more info.
+
 pub mod events;
+pub mod errors;
+pub mod ser;
 
 pub(crate) mod byte_utils;
+pub(crate) mod chacha20;
+#[cfg(not(feature = "fuzztarget"))]
+pub(crate) mod poly1305;
 pub(crate) mod chacha20poly1305rfc;
 pub(crate) mod internal_traits;
+pub(crate) mod rng;
+pub(crate) mod transaction_utils;
+
+#[macro_use]
+pub(crate) mod ser_macros;
+#[macro_use]
+pub(crate) mod macro_logger;
+
+// These have to come after macro_logger to build
+pub mod logger;
+pub mod config;
+
+#[cfg(feature = "fuzztarget")]
+pub use self::rng::{reset_rng_state, fill_bytes};
 
 #[cfg(test)]
 pub(crate) mod test_utils;
+
+#[macro_use]
+pub(crate) mod fuzz_wrappers;