| # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| # |
| # When uploading crates to the registry Cargo will automatically |
| # "normalize" Cargo.toml files for maximal compatibility |
| # with all versions of Cargo and also rewrite `path` dependencies |
| # to registry (e.g., crates.io) dependencies. |
| # |
| # If you are reading this file be aware that the original Cargo.toml |
| # will likely look very different (and much more reasonable). |
| # See Cargo.toml.orig for the original contents. |
| |
| [package] |
| edition = "2021" |
| rust-version = "1.65" |
| name = "bstr" |
| version = "1.10.0" |
| authors = ["Andrew Gallant <[email protected]>"] |
| build = false |
| exclude = [ |
| "/.github", |
| "/scripts", |
| ] |
| autobins = false |
| autoexamples = false |
| autotests = false |
| autobenches = false |
| description = "A string type that is not required to be valid UTF-8." |
| homepage = "https://github.com/BurntSushi/bstr" |
| documentation = "https://docs.rs/bstr" |
| readme = "README.md" |
| keywords = [ |
| "string", |
| "str", |
| "byte", |
| "bytes", |
| "text", |
| ] |
| categories = [ |
| "text-processing", |
| "encoding", |
| ] |
| license = "MIT OR Apache-2.0" |
| repository = "https://github.com/BurntSushi/bstr" |
| resolver = "2" |
| |
| [package.metadata.docs.rs] |
| all-features = true |
| rustdoc-args = [ |
| "--cfg", |
| "docsrs", |
| ] |
| |
| [profile.release] |
| debug = 2 |
| |
| [lib] |
| name = "bstr" |
| path = "src/lib.rs" |
| bench = false |
| |
| [[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" |
| |
| [dependencies.memchr] |
| version = "2.7.1" |
| default-features = false |
| |
| [dependencies.regex-automata] |
| version = "0.4.1" |
| features = ["dfa-search"] |
| optional = true |
| default-features = false |
| |
| [dependencies.serde] |
| version = "1.0.85" |
| optional = true |
| default-features = false |
| |
| [dev-dependencies.quickcheck] |
| version = "1" |
| default-features = false |
| |
| [dev-dependencies.ucd-parse] |
| version = "0.1.3" |
| |
| [dev-dependencies.unicode-segmentation] |
| version = "1.2.1" |
| |
| [features] |
| alloc = [ |
| "memchr/alloc", |
| "serde?/alloc", |
| ] |
| default = [ |
| "std", |
| "unicode", |
| ] |
| serde = ["dep:serde"] |
| std = [ |
| "alloc", |
| "memchr/std", |
| "serde?/std", |
| ] |
| unicode = ["dep:regex-automata"] |