1 #![cfg_attr(feature = "bench", feature(test))] 2 #![cfg_attr(feature = "no_std", feature(alloc))] 3 #![cfg_attr(feature = "no_std", no_std)] 4 #![feature(nll)] 5 6 #[cfg(feature = "no_std")] 7 #[cfg_attr(test, macro_use)] 8 extern crate alloc; 9 10 #[cfg(feature = "no_std")] 11 mod std { 12 pub use alloc::{borrow, rc}; 13 pub use core::*; 14 15 pub mod collections { 16 pub use alloc::collections::*; 17 pub use alloc::collections::BTreeMap as HashMap; 18 } 19 pub mod prelude { 20 pub use alloc::borrow::ToOwned; 21 pub use alloc::boxed::Box; 22 pub use alloc::string::String; 23 pub use alloc::vec::Vec; 24 } 25 } 26 27 pub mod compile; 28 pub mod ctype; 29 pub mod matcher; 30 31 pub use compile::PosixRegexBuilder; 32 pub use matcher::PosixRegex; 33