1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO 2# 3# When uploading crates to the registry Cargo will automatically 4# "normalize" Cargo.toml files for maximal compatibility 5# with all versions of Cargo and also rewrite `path` dependencies 6# to registry (e.g., crates.io) dependencies. 7# 8# If you are reading this file be aware that the original Cargo.toml 9# will likely look very different (and much more reasonable). 10# See Cargo.toml.orig for the original contents. 11 12[package] 13edition = "2021" 14rust-version = "1.60" 15name = "bstr" 16version = "1.3.0" 17authors = ["Andrew Gallant <[email protected]>"] 18exclude = ["/.github"] 19description = "A string type that is not required to be valid UTF-8." 20homepage = "https://github.com/BurntSushi/bstr" 21documentation = "https://docs.rs/bstr" 22readme = "README.md" 23keywords = [ 24 "string", 25 "str", 26 "byte", 27 "bytes", 28 "text", 29] 30categories = [ 31 "text-processing", 32 "encoding", 33] 34license = "MIT OR Apache-2.0" 35repository = "https://github.com/BurntSushi/bstr" 36resolver = "2" 37 38[package.metadata.docs.rs] 39all-features = true 40rustdoc-args = [ 41 "--cfg", 42 "docsrs", 43] 44 45[profile.release] 46debug = true 47 48[lib] 49bench = false 50 51[[example]] 52name = "graphemes" 53required-features = [ 54 "std", 55 "unicode", 56] 57 58[[example]] 59name = "lines" 60required-features = ["std"] 61 62[[example]] 63name = "uppercase" 64required-features = [ 65 "std", 66 "unicode", 67] 68 69[[example]] 70name = "words" 71required-features = [ 72 "std", 73 "unicode", 74] 75 76[dependencies.memchr] 77version = "2.4.0" 78default-features = false 79 80[dependencies.once_cell] 81version = "1.14.0" 82optional = true 83 84[dependencies.regex-automata] 85version = "0.1.5" 86optional = true 87default-features = false 88 89[dependencies.serde] 90version = "1.0.85" 91optional = true 92default-features = false 93 94[dev-dependencies.quickcheck] 95version = "1" 96default-features = false 97 98[dev-dependencies.ucd-parse] 99version = "0.1.3" 100 101[dev-dependencies.unicode-segmentation] 102version = "1.2.1" 103 104[features] 105alloc = ["serde?/alloc"] 106default = [ 107 "std", 108 "unicode", 109] 110serde = ["dep:serde"] 111std = [ 112 "alloc", 113 "memchr/std", 114 "serde?/std", 115] 116unicode = [ 117 "dep:once_cell", 118 "dep:regex-automata", 119] 120