Skip to content

Commit

Permalink
progress: API and docs refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed May 20, 2023
1 parent 9c4ce43 commit d2ed3c8
Show file tree
Hide file tree
Showing 46 changed files with 5,747 additions and 3,676 deletions.
35 changes: 22 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ std = [
"regex-automata/std",
"regex-syntax/std",
]
# This feature enables the 'log' crate to emit messages. This is usually
# only useful for folks working on the regex crate itself, but can be useful
# if you're trying hard to do some performance hacking on regex patterns
# themselves. Note that you'll need to pair this with a crate like 'env_logger'
# to actually emit the log messages somewhere.
logging = [
"aho-corasick?/logging",
"regex-automata/logging",
]
# The 'use_std' feature is DEPRECATED. It will be removed in regex 2. Until
# then, it is an alias for the 'std' feature.
use_std = ["std"]
Expand All @@ -64,11 +73,6 @@ perf = [
"perf-inline",
"perf-literal",
]
# Enables fast caching. (If disabled, caching is still used, but is slower.)
# Currently, this feature has no effect. It used to remove the thread_local
# dependency and use a slower internal cache, but now the default cache has
# been improved and thread_local is no longer a dependency at all.
perf-cache = []
# Enables use of a lazy DFA when possible.
perf-dfa = ["regex-automata/hybrid"]
# Enables use of a fully compiled DFA when possible.
Expand All @@ -86,6 +90,11 @@ perf-literal = [
"dep:memchr",
"regex-automata/perf-literal",
]
# Enables fast caching. (If disabled, caching is still used, but is slower.)
# Currently, this feature has no effect. It used to remove the thread_local
# dependency and use a slower internal cache, but now the default cache has
# been improved and thread_local is no longer a dependency at all.
perf-cache = []


# UNICODE DATA FEATURES
Expand Down Expand Up @@ -151,7 +160,7 @@ unstable = ["pattern"]
# by default if the unstable feature is enabled.
pattern = []

# For very fast prefix literal matching.
# For very fast multi-prefix literal matching.
[dependencies.aho-corasick]
version = "1.0.0"
optional = true
Expand All @@ -161,22 +170,22 @@ optional = true
version = "2.5.0"
optional = true

# For parsing regular expressions.
[dependencies.regex-syntax]
path = "regex-syntax"
version = "0.7.1"
default-features = false

# For the actual regex engines.
[dependencies.regex-automata]
path = "regex-automata"
version = "0.3.0"
default-features = false
features = ["alloc", "syntax", "meta", "nfa-pikevm"]

# For parsing regular expressions.
[dependencies.regex-syntax]
path = "regex-syntax"
version = "0.7.1"
default-features = false

[dev-dependencies]
# For examples.
lazy_static = "1"
once_cell = "1.17.1"
# For property based tests.
quickcheck = { version = "1.0.3", default-features = false }
# To check README's example
Expand Down
1,671 changes: 0 additions & 1,671 deletions examples/regexdna-input.txt

This file was deleted.

13 changes: 0 additions & 13 deletions examples/regexdna-output.txt

This file was deleted.

68 changes: 0 additions & 68 deletions examples/shootout-regex-dna-bytes.rs

This file was deleted.

90 changes: 0 additions & 90 deletions examples/shootout-regex-dna-cheat.rs

This file was deleted.

75 changes: 0 additions & 75 deletions examples/shootout-regex-dna-single-cheat.rs

This file was deleted.

57 changes: 0 additions & 57 deletions examples/shootout-regex-dna-single.rs

This file was deleted.

Loading

0 comments on commit d2ed3c8

Please sign in to comment.