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