lib.rs 729 B

1234567891011121314151617181920212223242526272829303132
  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. #[cfg(feature = "no_std")]
  6. #[macro_use]
  7. extern crate alloc;
  8. #[cfg(feature = "no_std")]
  9. mod std {
  10. pub use alloc::{borrow, rc};
  11. pub use core::*;
  12. pub mod collections {
  13. pub use alloc::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. pub mod compile;
  24. pub mod ctype;
  25. pub mod matcher;
  26. pub use compile::PosixRegexBuilder;
  27. pub use matcher::PosixRegex;