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
118
119
120
121
122
123
[]
= "regex-automata"
= "0.2.0" #:version
= ["Andrew Gallant <jamslam@gmail.com>"]
= "Automata construction and matching using regular expressions."
= "https://docs.rs/regex-automata"
= "https://github.com/BurntSushi/regex-automata"
= "https://github.com/BurntSushi/regex-automata"
= "README.md"
= ["regex", "dfa", "automata", "automaton", "nfa"]
= "Unlicense/MIT"
= ["text-processing"]
= [
"/.github", "/scripts/*", "/regex-cli", "/regex-test",
]
= false
= false
= "2018"
= "2"
[]
= ["bench", "examples", "regex-cli", "regex-test"]
[]
= false
[]
# WARNING: The features below were assembled quickly without much thought.
# They might not work as you expect. The safest configuration is the default
# configuration.
= ["std", "alloc", "syntax"]
= []
= ["syntax"]
= ["fst"]
= ["log"]
= ["regex-syntax"]
# WARNING: The features below are in a very rough draft form, which is why
# they are all commented out. I'm still working through the crate feature
# design, planned for the regex-automata 0.3 release.
# TODO: These features need to be fleshed out more, actually implemented and
# then tested. Also, add 'alloc' and 'std' features to regex-syntax before
# doing so.
#default = ["std", "dfa", "syntax", "unicode", "regex-syntax/default"]
#std = ["alloc", "memchr/std"]
# TODO: Should this also imply regex-syntax/alloc? Will that turn into a no-op
# if regex-syntax isn't enabled as a dependency? Do we need a separate
# 'alloc_nosyntax' feature to enable alloc features without bringing in
# regex-syntax? Sigh.
#alloc = []
#logging = ["log"]
#transducer = ["fst"]
# When enabled, the 'dfa' sub-module will be available. Note that if 'dfa' is
# enabled but 'alloc' is not, then only DFA deserialization and search will be
# available. DFA construction requires the 'alloc' and 'syntax' features to be
# enabled.
#dfa = []
#syntax = ["regex-syntax"]
## Enables all Unicode features. This expands if new Unicode features are added.
#unicode = [
# "unicode-age",
# "unicode-bool",
# "unicode-case",
# "unicode-gencat",
# "unicode-perl",
# "unicode-script",
# "unicode-segment",
# "regex-syntax/unicode",
#]
## Enables use of the `Age` property, e.g., `\p{Age:3.0}`.
#unicode-age = ["regex-syntax/unicode-age"]
## Enables use of a smattering of boolean properties, e.g., `\p{Emoji}`.
#unicode-bool = ["regex-syntax/unicode-bool"]
## Enables Unicode-aware case insensitive matching, e.g., `(?i)β`.
#unicode-case = ["regex-syntax/unicode-case"]
## Enables Unicode general categories, e.g., `\p{Letter}` or `\pL`.
#unicode-gencat = ["regex-syntax/unicode-gencat"]
## Enables Unicode-aware Perl classes corresponding to `\w`, `\s` and `\d`.
#unicode-perl = ["regex-syntax/unicode-perl"]
## Enables Unicode scripts and script extensions, e.g., `\p{Greek}`.
#unicode-script = ["regex-syntax/unicode-script"]
## Enables Unicode segmentation properties, e.g., `\p{gcb=Extend}`.
#unicode-segment = ["regex-syntax/unicode-segment"]
[]
= { = "0.4.5", = true }
= { = "0.4.14", = true }
= { = "2.4.0", = false }
= { = "0.6.24", = true }
# [dev-dependencies]
# bstr = { version = "0.2.16", default-features = false, features = ["std"] }
# quickcheck = { version = "1.0.3", default-features = false }
# regex-syntax = "0.6.16"
# regex-test = { version = "*", path = "regex-test" }
[[]]
= "tests/tests.rs"
= "integration"
[]
# Running tests takes too long in debug mode, so we forcefully always build
# with optimizations. Unfortunate, but, ¯\_(ツ)_/¯.
#
# It's counter-intuitive that this needs to be set on dev *and* test, but
# it's because the tests that take a long time to run are run as integration
# tests in a separate crate. The test.opt-level setting won't apply there, so
# we need to set the opt-level across the entire build.
= 3
= true
[]
= 3
= true
[]
= true
[]
= true