X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Flib.rs;h=6d4cc50a920cad4cde49b91d0329e227c6ad6379;hb=637fb88037fa329363e4b6462e9ad01f25cb4e41;hp=132189858fd4855cbded65af580a2a3611d7d9c5;hpb=acb4c539f7753efab69f430b84b6261e740d5d43;p=rust-lightning diff --git a/lightning/src/lib.rs b/lightning/src/lib.rs index 13218985..6d4cc50a 100644 --- a/lightning/src/lib.rs +++ b/lightning/src/lib.rs @@ -28,6 +28,8 @@ #![allow(bare_trait_objects)] #![allow(ellipsis_inclusive_range_patterns)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + #![cfg_attr(all(not(feature = "std"), not(test)), no_std)] #![cfg_attr(all(any(test, feature = "_test_utils"), feature = "_bench_unstable"), feature(test))] @@ -36,6 +38,9 @@ #[cfg(not(any(feature = "std", feature = "no-std")))] compile_error!("at least one of the `std` or `no-std` features must be enabled"); +#[cfg(all(fuzzing, test))] +compile_error!("Tests will always fail with cfg=fuzzing"); + #[macro_use] extern crate alloc; extern crate bitcoin;