Debian Codegraph @

debian/missing-sources/regex-syntax/Cargo.toml.orig

raw
1 [package]
2 name = "regex-syntax"
3 version = "0.8.8" #:version
4 authors = ["The Rust Project Developers", "Andrew Gallant <[email protected]>"]
5 license = "MIT OR Apache-2.0"
6 homepage = "https://github.com/rust-lang/regex/tree/master/regex-syntax"
7 repository = "https://github.com/rust-lang/regex"
8 documentation = "https://docs.rs/regex-syntax"
9 description = "A regular expression parser."
10 workspace = ".."
11 edition = "2021"
12 rust-version = "1.65"
13
14 # Features are documented in the "Crate features" section of the crate docs:
15 # https://docs.rs/regex-syntax/*/#crate-features
16 [features]
17 default = ["std", "unicode"]
18 std = []
19 arbitrary = ["dep:arbitrary"]
20
21 unicode = [
22 "unicode-age",
23 "unicode-bool",
24 "unicode-case",
25 "unicode-gencat",
26 "unicode-perl",
27 "unicode-script",
28 "unicode-segment",
29 ]
30 unicode-age = []
31 unicode-bool = []
32 unicode-case = []
33 unicode-gencat = []
34 unicode-perl = []
35 unicode-script = []
36 unicode-segment = []
37
38 [dependencies]
39 arbitrary = { version = "1.3.0", features = ["derive"], optional = true }
40
41 [package.metadata.docs.rs]
42 # We want to document all features.
43 all-features = true
44 # Since this crate's feature setup is pretty complicated, it is worth opting
45 # into a nightly unstable option to show the features that need to be enabled
46 # for public API items. To do that, we set 'docsrs_regex', and when that's
47 # enabled, we enable the 'doc_cfg' feature.
48 #
49 # To test this locally, run:
50 #
51 # RUSTDOCFLAGS="--cfg docsrs_regex" cargo +nightly doc --all-features
52 #
53 # Note that we use `docsrs_regex` instead of the more standard `docsrs` because
54 # other crates use that same `cfg` knob. And since we are enabling a nightly
55 # feature, they sometimes break. By using our "own" `cfg` knob, we are closer
56 # to being masters of our own destiny.
57 rustdoc-args = ["--cfg", "docsrs_regex"]
58
59 # This squashes the (AFAIK) erroneous warning that `docsrs_regex` is not a
60 # valid `cfg` knob.
61 [lints.rust]
62 unexpected_cfgs = { level = "allow", check-cfg = ['cfg(docsrs_regex)'] }