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