1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*!
This crate provides an "expert" API for executing regular expressions using
finite automata.

**WARNING**: This `0.2` release of `regex-automata` was published
before it was ready to unblock work elsewhere that needed some
of the new APIs in this release. At the time of writing, it is
strongly preferred that you continue using the
[`regex-automata 0.1`](https://docs.rs/regex-automata/0.1/regex_automata/)
release. Since this release represents an unfinished state, please do not
create issues for this release unless it's for a critical bug.
*/

#![allow(warnings)]
// #![deny(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]

#[cfg(not(any(
    target_pointer_width = "16",
    target_pointer_width = "32",
    target_pointer_width = "64"
)))]
compile_error!("regex-automata currently not supported on non-{16,32,64}");

#[cfg(feature = "alloc")]
extern crate alloc;

#[doc(inline)]
pub use crate::util::id::PatternID;
#[cfg(feature = "alloc")]
pub use crate::util::syntax::SyntaxConfig;
pub use crate::util::{
    bytes::{DeserializeError, SerializeError},
    matchtypes::{HalfMatch, Match, MatchError, MatchKind, MultiMatch},
};

#[macro_use]
mod macros;

pub mod dfa;
#[cfg(feature = "alloc")]
pub mod hybrid;
#[doc(hidden)]
#[cfg(feature = "alloc")]
pub mod nfa;
#[doc(hidden)]
pub mod util;