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