| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.73" |
| 15 |
name = "bstr" |
| 16 |
version = "1.12.1" |
| 17 |
authors = ["Andrew Gallant <[email protected]>"] |
| 18 |
build = false |
| 19 |
exclude = [ |
| 20 |
"/.github", |
| 21 |
"/scripts", |
| 22 |
"/src/unicode/data", |
| 23 |
] |
| 24 |
autolib = false |
| 25 |
autobins = false |
| 26 |
autoexamples = false |
| 27 |
autotests = false |
| 28 |
autobenches = false |
| 29 |
description = "A string type that is not required to be valid UTF-8." |
| 30 |
homepage = "https://github.com/BurntSushi/bstr" |
| 31 |
documentation = "https://docs.rs/bstr" |
| 32 |
readme = "README.md" |
| 33 |
keywords = [ |
| 34 |
"string", |
| 35 |
"str", |
| 36 |
"byte", |
| 37 |
"bytes", |
| 38 |
"text", |
| 39 |
] |
| 40 |
categories = [ |
| 41 |
"text-processing", |
| 42 |
"encoding", |
| 43 |
] |
| 44 |
license = "MIT OR Apache-2.0" |
| 45 |
repository = "https://github.com/BurntSushi/bstr" |
| 46 |
resolver = "2" |
| 47 |
|
| 48 |
[package.metadata.docs.rs] |
| 49 |
all-features = true |
| 50 |
rustdoc-args = [ |
| 51 |
"--cfg", |
| 52 |
"docsrs", |
| 53 |
] |
| 54 |
|
| 55 |
[features] |
| 56 |
alloc = [ |
| 57 |
"memchr/alloc", |
| 58 |
"serde?/alloc", |
| 59 |
] |
| 60 |
default = [ |
| 61 |
"std", |
| 62 |
"unicode", |
| 63 |
] |
| 64 |
serde = ["dep:serde"] |
| 65 |
std = [ |
| 66 |
"alloc", |
| 67 |
"memchr/std", |
| 68 |
"serde?/std", |
| 69 |
] |
| 70 |
unicode = ["dep:regex-automata"] |
| 71 |
|
| 72 |
[lib] |
| 73 |
name = "bstr" |
| 74 |
path = "src/lib.rs" |
| 75 |
bench = false |
| 76 |
|
| 77 |
[[example]] |
| 78 |
name = "graphemes" |
| 79 |
path = "examples/graphemes.rs" |
| 80 |
required-features = [ |
| 81 |
"std", |
| 82 |
"unicode", |
| 83 |
] |
| 84 |
|
| 85 |
[[example]] |
| 86 |
name = "graphemes-std" |
| 87 |
path = "examples/graphemes-std.rs" |
| 88 |
|
| 89 |
[[example]] |
| 90 |
name = "lines" |
| 91 |
path = "examples/lines.rs" |
| 92 |
required-features = ["std"] |
| 93 |
|
| 94 |
[[example]] |
| 95 |
name = "lines-std" |
| 96 |
path = "examples/lines-std.rs" |
| 97 |
|
| 98 |
[[example]] |
| 99 |
name = "uppercase" |
| 100 |
path = "examples/uppercase.rs" |
| 101 |
required-features = [ |
| 102 |
"std", |
| 103 |
"unicode", |
| 104 |
] |
| 105 |
|
| 106 |
[[example]] |
| 107 |
name = "uppercase-std" |
| 108 |
path = "examples/uppercase-std.rs" |
| 109 |
|
| 110 |
[[example]] |
| 111 |
name = "words" |
| 112 |
path = "examples/words.rs" |
| 113 |
required-features = [ |
| 114 |
"std", |
| 115 |
"unicode", |
| 116 |
] |
| 117 |
|
| 118 |
[[example]] |
| 119 |
name = "words-std" |
| 120 |
path = "examples/words-std.rs" |
| 121 |
|
| 122 |
[dependencies.memchr] |
| 123 |
version = "2.7.1" |
| 124 |
default-features = false |
| 125 |
|
| 126 |
[dependencies.regex-automata] |
| 127 |
version = "0.4.1" |
| 128 |
features = ["dfa-search"] |
| 129 |
optional = true |
| 130 |
default-features = false |
| 131 |
|
| 132 |
[dependencies.serde] |
| 133 |
version = "1.0.85" |
| 134 |
optional = true |
| 135 |
default-features = false |
| 136 |
|
| 137 |
[dev-dependencies.quickcheck] |
| 138 |
version = "1" |
| 139 |
default-features = false |
| 140 |
|
| 141 |
[dev-dependencies.ucd-parse] |
| 142 |
version = "0.1.3" |
| 143 |
|
| 144 |
[dev-dependencies.unicode-segmentation] |
| 145 |
version = "1.2.1" |
| 146 |
|
| 147 |
[profile.release] |
| 148 |
debug = 2 |