| 1 | /*! |
| 2 | This crate provides an "expert" API for executing regular expressions using |
| 3 | finite automata. |
| 4 | |
| 5 | **WARNING**: This `0.2` release of `regex-automata` was published |
| 6 | before it was ready to unblock work elsewhere that needed some |
| 7 | of the new APIs in this release. At the time of writing, it is |
| 8 | strongly preferred that you continue using the |
| 9 | [`regex-automata 0.1`](https://docs.rs/regex-automata/0.1/regex_automata/) |
| 10 | release. Since this release represents an unfinished state, please do not |
| 11 | create issues for this release unless it's for a critical bug. |
| 12 | */ |
| 13 | |
| 14 | #![allow (warnings)] |
| 15 | // #![deny(missing_docs)] |
| 16 | #![cfg_attr (not(feature = "std" ), no_std)] |
| 17 | |
| 18 | #[cfg (not(any( |
| 19 | target_pointer_width = "16" , |
| 20 | target_pointer_width = "32" , |
| 21 | target_pointer_width = "64" |
| 22 | )))] |
| 23 | compile_error!("regex-automata currently not supported on non-{16,32,64}" ); |
| 24 | |
| 25 | #[cfg (feature = "alloc" )] |
| 26 | extern crate alloc; |
| 27 | |
| 28 | #[doc (inline)] |
| 29 | pub use crate::util::id::PatternID; |
| 30 | #[cfg (feature = "alloc" )] |
| 31 | pub use crate::util::syntax::SyntaxConfig; |
| 32 | pub use crate::util::{ |
| 33 | bytes::{DeserializeError, SerializeError}, |
| 34 | matchtypes::{HalfMatch, Match, MatchError, MatchKind, MultiMatch}, |
| 35 | }; |
| 36 | |
| 37 | #[macro_use ] |
| 38 | mod macros; |
| 39 | |
| 40 | pub mod dfa; |
| 41 | #[cfg (feature = "alloc" )] |
| 42 | pub mod hybrid; |
| 43 | #[doc (hidden)] |
| 44 | #[cfg (feature = "alloc" )] |
| 45 | pub mod nfa; |
| 46 | #[doc (hidden)] |
| 47 | pub mod util; |
| 48 | |