1[package]
2name = "regex-syntax"
3version = "0.8.2" #:version
4authors = ["The Rust Project Developers", "Andrew Gallant <jamslam@gmail.com>"]
5license = "MIT OR Apache-2.0"
6repository = "https://github.com/rust-lang/regex/tree/master/regex-syntax"
7documentation = "https://docs.rs/regex-syntax"
8description = "A regular expression parser."
9workspace = ".."
10edition = "2021"
11rust-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]
16default = ["std", "unicode"]
17std = []
18arbitrary = ["dep:arbitrary"]
19
20unicode = [
21 "unicode-age",
22 "unicode-bool",
23 "unicode-case",
24 "unicode-gencat",
25 "unicode-perl",
26 "unicode-script",
27 "unicode-segment",
28]
29unicode-age = []
30unicode-bool = []
31unicode-case = []
32unicode-gencat = []
33unicode-perl = []
34unicode-script = []
35unicode-segment = []
36
37[dependencies]
38arbitrary = { version = "1.3.0", features = ["derive"], optional = true }
39
40[package.metadata.docs.rs]
41# We want to document all features.
42all-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
51rustdoc-args = ["--cfg", "docsrs"]
52