X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Flib.rs;h=c84e3d2d8da24aaeb826cc2e258410d4c7c79c67;hb=7fa6a7d48e5cec139481ceee95baadb2cf06486e;hp=a9f46b43a4026f650069cb97f9baf1dd62a0d968;hpb=12461fcba179a1b6726f5c2557d12cb1f1b33b25;p=rust-lightning diff --git a/lightning/src/lib.rs b/lightning/src/lib.rs index a9f46b43..c84e3d2d 100644 --- a/lightning/src/lib.rs +++ b/lightning/src/lib.rs @@ -44,5 +44,12 @@ pub mod ln; pub mod routing; mod prelude { - pub use alloc::{vec, vec::Vec, string::String}; -} \ No newline at end of file + #[cfg(feature = "hashbrown")] + extern crate hashbrown; + + pub use alloc::{vec, vec::Vec, string::String, collections::VecDeque}; + #[cfg(not(feature = "hashbrown"))] + pub use std::collections::{HashMap, HashSet, hash_map}; + #[cfg(feature = "hashbrown")] + pub use self::hashbrown::{HashMap, HashSet, hash_map}; +}