projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make derive_private_key public
[rust-lightning]
/
lightning
/
src
/
util
/
mod.rs
diff --git
a/lightning/src/util/mod.rs
b/lightning/src/util/mod.rs
index aab77035d387d452d469067329e6db9ad77a69e2..42c59b4536bbf9164f088e88257a702969e8270c 100644
(file)
--- a/
lightning/src/util/mod.rs
+++ b/
lightning/src/util/mod.rs
@@
-1,5
+1,8
@@
//! Some utility modules live here. See individual sub-modules for more info.
//! Some utility modules live here. See individual sub-modules for more info.
+#[macro_use]
+pub(crate) mod fuzz_wrappers;
+
pub mod events;
pub mod errors;
pub mod ser;
pub mod events;
pub mod errors;
pub mod ser;
@@
-23,5
+26,7
@@
pub mod config;
#[cfg(test)]
pub(crate) mod test_utils;
#[cfg(test)]
pub(crate) mod test_utils;
-#[macro_use]
-pub(crate) mod fuzz_wrappers;
+/// impls of traits that add exra enforcement on the way they're called. Useful for detecting state
+/// machine errors and used in fuzz targets and tests.
+#[cfg(any(test, feature = "fuzztarget"))]
+pub mod enforcing_trait_impls;