Skip to content

Commit 144c684

Browse files
committed
progress: API and docs refresh
1 parent b91816a commit 144c684

12 files changed

+1165
-286
lines changed

Cargo.toml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ std = [
4545
"regex-automata/std",
4646
"regex-syntax/std",
4747
]
48+
# This feature enables the 'log' crate to emit messages. This is usually
49+
# only useful for folks working on the regex crate itself, but can be useful
50+
# if you're trying hard to do some performance hacking on regex patterns
51+
# themselves. Note that you'll need to pair this with a crate like 'env_logger'
52+
# to actually emit the log messages somewhere.
53+
logging = [
54+
"aho-corasick?/logging",
55+
"regex-automata/logging",
56+
]
4857
# The 'use_std' feature is DEPRECATED. It will be removed in regex 2. Until
4958
# then, it is an alias for the 'std' feature.
5059
use_std = ["std"]
@@ -64,11 +73,6 @@ perf = [
6473
"perf-inline",
6574
"perf-literal",
6675
]
67-
# Enables fast caching. (If disabled, caching is still used, but is slower.)
68-
# Currently, this feature has no effect. It used to remove the thread_local
69-
# dependency and use a slower internal cache, but now the default cache has
70-
# been improved and thread_local is no longer a dependency at all.
71-
perf-cache = []
7276
# Enables use of a lazy DFA when possible.
7377
perf-dfa = ["regex-automata/hybrid"]
7478
# Enables use of a fully compiled DFA when possible.
@@ -86,6 +90,11 @@ perf-literal = [
8690
"dep:memchr",
8791
"regex-automata/perf-literal",
8892
]
93+
# Enables fast caching. (If disabled, caching is still used, but is slower.)
94+
# Currently, this feature has no effect. It used to remove the thread_local
95+
# dependency and use a slower internal cache, but now the default cache has
96+
# been improved and thread_local is no longer a dependency at all.
97+
perf-cache = []
8998

9099

91100
# UNICODE DATA FEATURES
@@ -151,7 +160,7 @@ unstable = ["pattern"]
151160
# by default if the unstable feature is enabled.
152161
pattern = []
153162

154-
# For very fast prefix literal matching.
163+
# For very fast multi-prefix literal matching.
155164
[dependencies.aho-corasick]
156165
version = "1.0.0"
157166
optional = true
@@ -161,22 +170,22 @@ optional = true
161170
version = "2.5.0"
162171
optional = true
163172

164-
# For parsing regular expressions.
165-
[dependencies.regex-syntax]
166-
path = "regex-syntax"
167-
version = "0.7.1"
168-
default-features = false
169-
170173
# For the actual regex engines.
171174
[dependencies.regex-automata]
172175
path = "regex-automata"
173176
version = "0.3.0"
174177
default-features = false
175178
features = ["alloc", "syntax", "meta", "nfa-pikevm"]
176179

180+
# For parsing regular expressions.
181+
[dependencies.regex-syntax]
182+
path = "regex-syntax"
183+
version = "0.7.1"
184+
default-features = false
185+
177186
[dev-dependencies]
178187
# For examples.
179-
lazy_static = "1"
188+
once_cell = "1.17.1"
180189
# For property based tests.
181190
quickcheck = { version = "1.0.3", default-features = false }
182191
# To check README's example

0 commit comments

Comments
 (0)