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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[]
= "regex"
= "0.2.11" #:version
= ["The Rust Project Developers"]
= "MIT/Apache-2.0"
= "README.md"
= "https://github.com/rust-lang/regex"
= "https://docs.rs/regex"
= "https://github.com/rust-lang/regex"
= """
An implementation of regular expressions for Rust. This implementation uses
finite automata and guarantees linear time matching on all inputs.
"""
= ["text-processing"]
[]
= { = "rust-lang/regex" }
= { = "rust-lang-libs/regex" }
[]
= [
"bench", "regex-capi", "regex-debug", "regex-syntax",
]
[]
# For very fast prefix literal matching.
= "0.6.0"
# For skipping along search text quickly when a leading byte is known.
= "2.0.0"
# For managing regex caches quickly across multiple threads.
= "0.3.2"
# For parsing regular expressions.
= { = "regex-syntax", = "0.5.6" }
# For compiling UTF-8 decoding into automata.
= "1.0.0"
[]
# For examples.
= "1"
# For property based tests.
= { = "0.6", = false }
# For generating random test data.
= "0.4"
[]
# We don't enable any features by default currently, but if the compiler
# supports a specific type of feature, then regex's build.rs might enable
# some default features.
= []
# A blanket feature that governs whether unstable features are enabled or not.
# Unstable features are disabled by default, and typically rely on unstable
# features in rustc itself.
= ["pattern"]
# Enable to use the unstable pattern traits defined in std. This is enabled
# by default if the unstable feature is enabled.
= []
# Enable to use simd acceleration.
# Note that this is deprecated and is a no-op.
= []
[]
# There are no benchmarks in the library code itself
= false
# Run the test suite on the default behavior of Regex::new.
# This includes a mish mash of NFAs and DFAs, which are chosen automatically
# based on the regex. We test both of the NFA implementations by forcing their
# usage with the test definitions below. (We can't test the DFA implementations
# in the same way since they can't be used for every regex tested.)
[[]]
= "tests/test_default.rs"
= "default"
# The same as the default tests, but run on bytes::Regex.
[[]]
= "tests/test_default_bytes.rs"
= "default-bytes"
# Run the test suite on the NFA algorithm over Unicode codepoints.
[[]]
= "tests/test_nfa.rs"
= "nfa"
# Run the test suite on the NFA algorithm over bytes that match UTF-8 only.
[[]]
= "tests/test_nfa_utf8bytes.rs"
= "nfa-utf8bytes"
# Run the test suite on the NFA algorithm over arbitrary bytes.
[[]]
= "tests/test_nfa_bytes.rs"
= "nfa-bytes"
# Run the test suite on the backtracking engine over Unicode codepoints.
[[]]
= "tests/test_backtrack.rs"
= "backtrack"
# Run the test suite on the backtracking engine over bytes that match UTF-8
# only.
[[]]
= "tests/test_backtrack_utf8bytes.rs"
= "backtrack-utf8bytes"
# Run the test suite on the backtracking engine over arbitrary bytes.
[[]]
= "tests/test_backtrack_bytes.rs"
= "backtrack-bytes"
[]
= true
[]
= true
[]
= true