@@ -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.
5059use_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.
7377perf-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.
152161pattern = []
153162
154- # For very fast prefix literal matching.
163+ # For very fast multi- prefix literal matching.
155164[dependencies .aho-corasick ]
156165version = " 1.0.0"
157166optional = true
@@ -160,23 +169,22 @@ optional = true
160169[dependencies .memchr ]
161170version = " 2.5.0"
162171optional = true
163-
164- # For parsing regular expressions.
165- [dependencies .regex-syntax ]
166- path = " regex-syntax"
167- version = " 0.7.2"
168- default-features = false
169-
170172# For the actual regex engines.
171173[dependencies .regex-automata ]
172174path = " regex-automata"
173175version = " 0.3.0"
174176default-features = false
175177features = [" alloc" , " syntax" , " meta" , " nfa-pikevm" ]
176178
179+ # For parsing regular expressions.
180+ [dependencies .regex-syntax ]
181+ path = " regex-syntax"
182+ version = " 0.7.2"
183+ default-features = false
184+
177185[dev-dependencies ]
178186# For examples.
179- lazy_static = " 1"
187+ once_cell = " 1.17. 1"
180188# For property based tests.
181189quickcheck = { version = " 1.0.3" , default-features = false }
182190# To check README's example
0 commit comments