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