3 version = "0.2.2" #:version
4 authors = ["The Rust Project Developers"]
5 license = "MIT/Apache-2.0"
7 repository = "https://github.com/rust-lang/regex"
8 documentation = "https://doc.rust-lang.org/regex"
9 homepage = "https://github.com/rust-lang/regex"
11 An implementation of regular expressions for Rust. This implementation uses
12 finite automata and guarantees linear time matching on all inputs.
14 categories = ["text-processing"]
17 # For very fast prefix literal matching.
18 aho-corasick = "0.6.0"
19 # For skipping along search text quickly when a leading byte is known.
21 # For managing regex caches quickly across multiple threads.
22 thread_local = "0.3.2"
23 # For parsing regular expressions.
24 regex-syntax = { path = "regex-syntax", version = "0.4.1" }
25 # For accelerating text search.
26 simd = { version = "0.1.1", optional = true }
27 # For compiling UTF-8 decoding into automata.
33 # For property based tests.
34 quickcheck = { version = "0.4.1", default-features = false }
35 # For generating random test data.
39 # Enable to use the unstable pattern traits defined in std.
41 # Enable to use simd acceleration.
45 # There are no benchmarks in the library code itself
48 # Run the test suite on the default behavior of Regex::new.
49 # This includes a mish mash of NFAs and DFAs, which are chosen automatically
50 # based on the regex. We test both of the NFA implementations by forcing their
51 # usage with the test definitions below. (We can't test the DFA implementations
52 # in the same way since they can't be used for every regex tested.)
54 path = "tests/test_default.rs"
57 # The same as the default tests, but run on bytes::Regex.
59 path = "tests/test_default_bytes.rs"
60 name = "default-bytes"
62 # Run the test suite on the NFA algorithm over Unicode codepoints.
64 path = "tests/test_nfa.rs"
67 # Run the test suite on the NFA algorithm over bytes that match UTF-8 only.
69 path = "tests/test_nfa_utf8bytes.rs"
70 name = "nfa-utf8bytes"
72 # Run the test suite on the NFA algorithm over arbitrary bytes.
74 path = "tests/test_nfa_bytes.rs"
77 # Run the test suite on the backtracking engine over Unicode codepoints.
79 path = "tests/test_backtrack.rs"
82 # Run the test suite on the backtracking engine over bytes that match UTF-8
85 path = "tests/test_backtrack_utf8bytes.rs"
86 name = "backtrack-utf8bytes"
88 # Run the test suite on the backtracking engine over arbitrary bytes.
90 path = "tests/test_backtrack_bytes.rs"
91 name = "backtrack-bytes"