Do not require upfront_shutdown as the security gain is marginal
[rust-lightning] / src / lib.rs
index 52ec664023621954d162ba8f603a7cc4a21491cd..c6e4708a8ebadb933e794889d1378e6b34f24fdf 100644 (file)
 //! instead of having a rather-separate lightning appendage to a wallet.
 
 #![cfg_attr(not(feature = "fuzztarget"), deny(missing_docs))]
+#![forbid(unsafe_code)]
 
 extern crate bitcoin;
 extern crate bitcoin_hashes;
-extern crate rand;
 extern crate secp256k1;
+#[cfg(test)] extern crate rand;
 #[cfg(test)] extern crate hex;
 
 #[macro_use]