[dependencies.aho-corasick]
default-features = false
optional = true
version = "1.0.0"
[dependencies.memchr]
default-features = false
optional = true
version = "2.6.0"
[dependencies.regex-automata]
default-features = false
features = ["alloc", "syntax", "meta", "nfa-pikevm"]
version = "0.4.4"
[dependencies.regex-syntax]
default-features = false
version = "0.8.2"
[dev-dependencies.anyhow]
version = "1.0.69"
[dev-dependencies.doc-comment]
version = "0.3"
[dev-dependencies.env_logger]
default-features = false
features = ["atty", "humantime", "termcolor"]
version = "0.9.3"
[dev-dependencies.once_cell]
version = "1.17.1"
[dev-dependencies.quickcheck]
default-features = false
version = "1.0.3"
[dev-dependencies.regex-test]
version = "0.1.0"
[features]
default = ["std", "perf", "unicode", "regex-syntax/default"]
logging = ["aho-corasick?/logging", "memchr?/logging", "regex-automata/logging"]
pattern = []
perf = ["perf-cache", "perf-dfa", "perf-onepass", "perf-backtrack", "perf-inline", "perf-literal"]
perf-backtrack = ["regex-automata/nfa-backtrack"]
perf-cache = []
perf-dfa = ["regex-automata/hybrid"]
perf-dfa-full = ["regex-automata/dfa-build", "regex-automata/dfa-search"]
perf-inline = ["regex-automata/perf-inline"]
perf-literal = ["dep:aho-corasick", "dep:memchr", "regex-automata/perf-literal"]
perf-onepass = ["regex-automata/dfa-onepass"]
std = ["aho-corasick?/std", "memchr?/std", "regex-automata/std", "regex-syntax/std"]
unicode = ["unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment", "regex-automata/unicode", "regex-syntax/unicode"]
unicode-age = ["regex-automata/unicode-age", "regex-syntax/unicode-age"]
unicode-bool = ["regex-automata/unicode-bool", "regex-syntax/unicode-bool"]
unicode-case = ["regex-automata/unicode-case", "regex-syntax/unicode-case"]
unicode-gencat = ["regex-automata/unicode-gencat", "regex-syntax/unicode-gencat"]
unicode-perl = ["regex-automata/unicode-perl", "regex-automata/unicode-word-boundary", "regex-syntax/unicode-perl"]
unicode-script = ["regex-automata/unicode-script", "regex-syntax/unicode-script"]
unicode-segment = ["regex-automata/unicode-segment", "regex-syntax/unicode-segment"]
unstable = ["pattern"]
use_std = ["std"]
[lib]
name = "regex"
path = "src/lib.rs"
[package]
authors = ["The Rust Project Developers", "Andrew Gallant <jamslam@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["text-processing"]
description = """
An implementation of regular expressions for Rust. This implementation uses
finite automata and guarantees linear time matching on all inputs.
"""
documentation = "https://docs.rs/regex"
edition = "2021"
exclude = ["/scripts/*", "/.github/*"]
homepage = "https://github.com/rust-lang/regex"
license = "MIT OR Apache-2.0"
name = "regex"
readme = "README.md"
repository = "https://github.com/rust-lang/regex"
rust-version = "1.65"
version = "1.10.6"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.bench]
debug = 2
[profile.dev]
debug = 2
opt-level = 3
[profile.release]
debug = 2
[profile.test]
debug = 2
opt-level = 3
[[test]]
name = "integration"
path = "tests/lib.rs"