| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.65" |
| 15 |
name = "regex" |
| 16 |
version = "1.12.2" |
| 17 |
authors = [ |
| 18 |
"The Rust Project Developers", |
| 19 |
"Andrew Gallant <[email protected]>", |
| 20 |
] |
| 21 |
build = false |
| 22 |
exclude = [ |
| 23 |
"/fuzz/*", |
| 24 |
"/record/*", |
| 25 |
"/scripts/*", |
| 26 |
"tests/fuzz/*", |
| 27 |
"/.github/*", |
| 28 |
] |
| 29 |
autolib = false |
| 30 |
autobins = false |
| 31 |
autoexamples = false |
| 32 |
autotests = false |
| 33 |
autobenches = false |
| 34 |
description = """ |
| 35 |
An implementation of regular expressions for Rust. This implementation uses |
| 36 |
finite automata and guarantees linear time matching on all inputs. |
| 37 |
""" |
| 38 |
homepage = "https://github.com/rust-lang/regex" |
| 39 |
documentation = "https://docs.rs/regex" |
| 40 |
readme = "README.md" |
| 41 |
categories = ["text-processing"] |
| 42 |
license = "MIT OR Apache-2.0" |
| 43 |
repository = "https://github.com/rust-lang/regex" |
| 44 |
|
| 45 |
[package.metadata.docs.rs] |
| 46 |
all-features = true |
| 47 |
rustdoc-args = [ |
| 48 |
"--cfg", |
| 49 |
"docsrs_regex", |
| 50 |
] |
| 51 |
|
| 52 |
[features] |
| 53 |
default = [ |
| 54 |
"std", |
| 55 |
"perf", |
| 56 |
"unicode", |
| 57 |
"regex-syntax/default", |
| 58 |
] |
| 59 |
logging = [ |
| 60 |
"aho-corasick?/logging", |
| 61 |
"memchr?/logging", |
| 62 |
"regex-automata/logging", |
| 63 |
] |
| 64 |
pattern = [] |
| 65 |
perf = [ |
| 66 |
"perf-cache", |
| 67 |
"perf-dfa", |
| 68 |
"perf-onepass", |
| 69 |
"perf-backtrack", |
| 70 |
"perf-inline", |
| 71 |
"perf-literal", |
| 72 |
] |
| 73 |
perf-backtrack = ["regex-automata/nfa-backtrack"] |
| 74 |
perf-cache = [] |
| 75 |
perf-dfa = ["regex-automata/hybrid"] |
| 76 |
perf-dfa-full = [ |
| 77 |
"regex-automata/dfa-build", |
| 78 |
"regex-automata/dfa-search", |
| 79 |
] |
| 80 |
perf-inline = ["regex-automata/perf-inline"] |
| 81 |
perf-literal = [ |
| 82 |
"dep:aho-corasick", |
| 83 |
"dep:memchr", |
| 84 |
"regex-automata/perf-literal", |
| 85 |
] |
| 86 |
perf-onepass = ["regex-automata/dfa-onepass"] |
| 87 |
std = [ |
| 88 |
"aho-corasick?/std", |
| 89 |
"memchr?/std", |
| 90 |
"regex-automata/std", |
| 91 |
"regex-syntax/std", |
| 92 |
] |
| 93 |
unicode = [ |
| 94 |
"unicode-age", |
| 95 |
"unicode-bool", |
| 96 |
"unicode-case", |
| 97 |
"unicode-gencat", |
| 98 |
"unicode-perl", |
| 99 |
"unicode-script", |
| 100 |
"unicode-segment", |
| 101 |
"regex-automata/unicode", |
| 102 |
"regex-syntax/unicode", |
| 103 |
] |
| 104 |
unicode-age = [ |
| 105 |
"regex-automata/unicode-age", |
| 106 |
"regex-syntax/unicode-age", |
| 107 |
] |
| 108 |
unicode-bool = [ |
| 109 |
"regex-automata/unicode-bool", |
| 110 |
"regex-syntax/unicode-bool", |
| 111 |
] |
| 112 |
unicode-case = [ |
| 113 |
"regex-automata/unicode-case", |
| 114 |
"regex-syntax/unicode-case", |
| 115 |
] |
| 116 |
unicode-gencat = [ |
| 117 |
"regex-automata/unicode-gencat", |
| 118 |
"regex-syntax/unicode-gencat", |
| 119 |
] |
| 120 |
unicode-perl = [ |
| 121 |
"regex-automata/unicode-perl", |
| 122 |
"regex-automata/unicode-word-boundary", |
| 123 |
"regex-syntax/unicode-perl", |
| 124 |
] |
| 125 |
unicode-script = [ |
| 126 |
"regex-automata/unicode-script", |
| 127 |
"regex-syntax/unicode-script", |
| 128 |
] |
| 129 |
unicode-segment = [ |
| 130 |
"regex-automata/unicode-segment", |
| 131 |
"regex-syntax/unicode-segment", |
| 132 |
] |
| 133 |
unstable = ["pattern"] |
| 134 |
use_std = ["std"] |
| 135 |
|
| 136 |
[lib] |
| 137 |
name = "regex" |
| 138 |
path = "src/lib.rs" |
| 139 |
|
| 140 |
[[test]] |
| 141 |
name = "integration" |
| 142 |
path = "tests/lib.rs" |
| 143 |
|
| 144 |
[dependencies.aho-corasick] |
| 145 |
version = "1.0.0" |
| 146 |
optional = true |
| 147 |
default-features = false |
| 148 |
|
| 149 |
[dependencies.memchr] |
| 150 |
version = "2.6.0" |
| 151 |
optional = true |
| 152 |
default-features = false |
| 153 |
|
| 154 |
[dependencies.regex-automata] |
| 155 |
version = "0.4.12" |
| 156 |
features = [ |
| 157 |
"alloc", |
| 158 |
"syntax", |
| 159 |
"meta", |
| 160 |
"nfa-pikevm", |
| 161 |
] |
| 162 |
default-features = false |
| 163 |
|
| 164 |
[dependencies.regex-syntax] |
| 165 |
version = "0.8.5" |
| 166 |
default-features = false |
| 167 |
|
| 168 |
[dev-dependencies.anyhow] |
| 169 |
version = "1.0.69" |
| 170 |
|
| 171 |
[dev-dependencies.doc-comment] |
| 172 |
version = "0.3" |
| 173 |
|
| 174 |
[dev-dependencies.env_logger] |
| 175 |
version = "0.9.3" |
| 176 |
features = [ |
| 177 |
"atty", |
| 178 |
"humantime", |
| 179 |
"termcolor", |
| 180 |
] |
| 181 |
default-features = false |
| 182 |
|
| 183 |
[dev-dependencies.quickcheck] |
| 184 |
version = "1.0.3" |
| 185 |
default-features = false |
| 186 |
|
| 187 |
[dev-dependencies.regex-test] |
| 188 |
version = "0.1.0" |
| 189 |
|
| 190 |
[lints.rust.unexpected_cfgs] |
| 191 |
level = "allow" |
| 192 |
priority = 0 |
| 193 |
check-cfg = ["cfg(docsrs_regex)"] |
| 194 |
|
| 195 |
[profile.bench] |
| 196 |
debug = 2 |
| 197 |
|
| 198 |
[profile.dev] |
| 199 |
opt-level = 3 |
| 200 |
debug = 2 |
| 201 |
|
| 202 |
[profile.release] |
| 203 |
debug = 2 |
| 204 |
|
| 205 |
[profile.test] |
| 206 |
opt-level = 3 |
| 207 |
debug = 2 |