[dependencies.memchr]
default-features = false
version = "2.7.1"
[dependencies.regex-automata]
default-features = false
features = ["dfa-search"]
optional = true
version = "0.4.1"
[dependencies.serde]
default-features = false
optional = true
version = "1.0.85"
[dev-dependencies.quickcheck]
default-features = false
version = "1"
[dev-dependencies.ucd-parse]
version = "0.1.3"
[dev-dependencies.unicode-segmentation]
version = "1.2.1"
[[example]]
name = "graphemes"
path = "examples/graphemes.rs"
required-features = ["std", "unicode"]
[[example]]
name = "graphemes-std"
path = "examples/graphemes-std.rs"
[[example]]
name = "lines"
path = "examples/lines.rs"
required-features = ["std"]
[[example]]
name = "lines-std"
path = "examples/lines-std.rs"
[[example]]
name = "uppercase"
path = "examples/uppercase.rs"
required-features = ["std", "unicode"]
[[example]]
name = "uppercase-std"
path = "examples/uppercase-std.rs"
[[example]]
name = "words"
path = "examples/words.rs"
required-features = ["std", "unicode"]
[[example]]
name = "words-std"
path = "examples/words-std.rs"
[features]
alloc = ["memchr/alloc", "serde?/alloc"]
default = ["std", "unicode"]
serde = ["dep:serde"]
std = ["alloc", "memchr/std", "serde?/std"]
unicode = ["dep:regex-automata"]
[lib]
bench = false
name = "bstr"
path = "src/lib.rs"
[package]
authors = ["Andrew Gallant <jamslam@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["text-processing", "encoding"]
description = "A string type that is not required to be valid UTF-8."
documentation = "https://docs.rs/bstr"
edition = "2021"
exclude = ["/.github", "/scripts"]
homepage = "https://github.com/BurntSushi/bstr"
keywords = ["string", "str", "byte", "bytes", "text"]
license = "MIT OR Apache-2.0"
name = "bstr"
readme = "README.md"
repository = "https://github.com/BurntSushi/bstr"
resolver = "2"
rust-version = "1.65"
version = "1.10.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.release]
debug = 2