| 1 |
[package] |
| 2 |
name = "regex-syntax" |
| 3 |
version = "0.8.3" #:version |
| 4 |
authors = ["The Rust Project Developers", "Andrew Gallant <[email protected]>"] |
| 5 |
license = "MIT OR Apache-2.0" |
| 6 |
repository = "https://github.com/rust-lang/regex/tree/master/regex-syntax" |
| 7 |
documentation = "https://docs.rs/regex-syntax" |
| 8 |
description = "A regular expression parser." |
| 9 |
workspace = ".." |
| 10 |
edition = "2021" |
| 11 |
rust-version = "1.65" |
| 12 |
|
| 13 |
# Features are documented in the "Crate features" section of the crate docs: |
| 14 |
# https://docs.rs/regex-syntax/*/#crate-features |
| 15 |
[features] |
| 16 |
default = ["std", "unicode"] |
| 17 |
std = [] |
| 18 |
arbitrary = ["dep:arbitrary"] |
| 19 |
|
| 20 |
unicode = [ |
| 21 |
"unicode-age", |
| 22 |
"unicode-bool", |
| 23 |
"unicode-case", |
| 24 |
"unicode-gencat", |
| 25 |
"unicode-perl", |
| 26 |
"unicode-script", |
| 27 |
"unicode-segment", |
| 28 |
] |
| 29 |
unicode-age = [] |
| 30 |
unicode-bool = [] |
| 31 |
unicode-case = [] |
| 32 |
unicode-gencat = [] |
| 33 |
unicode-perl = [] |
| 34 |
unicode-script = [] |
| 35 |
unicode-segment = [] |
| 36 |
|
| 37 |
[dependencies] |
| 38 |
arbitrary = { version = "1.3.0", features = ["derive"], optional = true } |
| 39 |
|
| 40 |
[package.metadata.docs.rs] |
| 41 |
# We want to document all features. |
| 42 |
all-features = true |
| 43 |
# Since this crate's feature setup is pretty complicated, it is worth opting |
| 44 |
# into a nightly unstable option to show the features that need to be enabled |
| 45 |
# for public API items. To do that, we set 'docsrs', and when that's enabled, |
| 46 |
# we enable the 'doc_auto_cfg' feature. |
| 47 |
# |
| 48 |
# To test this locally, run: |
| 49 |
# |
| 50 |
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features |
| 51 |
rustdoc-args = ["--cfg", "docsrs"] |