Debian Codegraph @

debian/missing-sources/bstr/Cargo.toml.orig

raw
1 [package]
2 name = "bstr"
3 version = "1.12.1" #:version
4 authors = ["Andrew Gallant <[email protected]>"]
5 description = "A string type that is not required to be valid UTF-8."
6 documentation = "https://docs.rs/bstr"
7 homepage = "https://github.com/BurntSushi/bstr"
8 repository = "https://github.com/BurntSushi/bstr"
9 readme = "README.md"
10 keywords = ["string", "str", "byte", "bytes", "text"]
11 license = "MIT OR Apache-2.0"
12 categories = ["text-processing", "encoding"]
13 exclude = ["/.github", "/scripts", "/src/unicode/data"]
14 edition = "2021"
15 rust-version = "1.73"
16 resolver = "2"
17
18 [workspace]
19 members = ["bench"]
20
21 [lib]
22 bench = false
23
24 [features]
25 default = ["std", "unicode"]
26 std = ["alloc", "memchr/std", "serde?/std"]
27 alloc = ["memchr/alloc", "serde?/alloc"]
28 unicode = ["dep:regex-automata"]
29 serde = ["dep:serde"]
30
31 [dependencies]
32 memchr = { version = "2.7.1", default-features = false }
33 serde = { version = "1.0.85", default-features = false, optional = true }
34
35 [dependencies.regex-automata]
36 version = "0.4.1"
37 default-features = false
38 features = ["dfa-search"]
39 optional = true
40
41 [dev-dependencies]
42 quickcheck = { version = "1", default-features = false }
43 ucd-parse = "0.1.3"
44 unicode-segmentation = "1.2.1"
45
46 [package.metadata.docs.rs]
47 # We want to document all features.
48 all-features = true
49 # Since this crate's feature setup is pretty complicated, it is worth opting
50 # into a nightly unstable option to show the features that need to be enabled
51 # for public API items. To do that, we set 'docsrs', and when that's enabled,
52 # we enable the 'doc_cfg' feature.
53 #
54 # To test this locally, run:
55 #
56 # RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features
57 rustdoc-args = ["--cfg", "docsrs"]
58
59 [profile.release]
60 debug = true
61
62 [[example]]
63 name = "graphemes"
64 required-features = ["std", "unicode"]
65
66 [[example]]
67 name = "lines"
68 required-features = ["std"]
69
70 [[example]]
71 name = "uppercase"
72 required-features = ["std", "unicode"]
73
74 [[example]]
75 name = "words"
76 required-features = ["std", "unicode"]