| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.82" |
| 15 |
name = "tinystr" |
| 16 |
version = "0.8.2" |
| 17 |
authors = ["The ICU4X Project Developers"] |
| 18 |
build = false |
| 19 |
include = [ |
| 20 |
"data/**/*", |
| 21 |
"src/**/*", |
| 22 |
"examples/**/*", |
| 23 |
"benches/**/*", |
| 24 |
"tests/**/*", |
| 25 |
"Cargo.toml", |
| 26 |
"LICENSE", |
| 27 |
"README.md", |
| 28 |
"build.rs", |
| 29 |
] |
| 30 |
autolib = false |
| 31 |
autobins = false |
| 32 |
autoexamples = false |
| 33 |
autotests = false |
| 34 |
autobenches = false |
| 35 |
description = "A small ASCII-only bounded length string representation." |
| 36 |
readme = "README.md" |
| 37 |
keywords = [ |
| 38 |
"string", |
| 39 |
"str", |
| 40 |
"small", |
| 41 |
"tiny", |
| 42 |
"no_std", |
| 43 |
] |
| 44 |
categories = ["data-structures"] |
| 45 |
license = "Unicode-3.0" |
| 46 |
repository = "https://github.com/unicode-org/icu4x" |
| 47 |
|
| 48 |
[package.metadata.workspaces] |
| 49 |
independent = true |
| 50 |
|
| 51 |
[package.metadata.docs.rs] |
| 52 |
all-features = true |
| 53 |
|
| 54 |
[features] |
| 55 |
alloc = [ |
| 56 |
"serde_core?/alloc", |
| 57 |
"zerovec?/alloc", |
| 58 |
] |
| 59 |
databake = ["dep:databake"] |
| 60 |
default = ["alloc"] |
| 61 |
serde = ["dep:serde_core"] |
| 62 |
std = [] |
| 63 |
zerovec = ["dep:zerovec"] |
| 64 |
|
| 65 |
[lib] |
| 66 |
name = "tinystr" |
| 67 |
path = "src/lib.rs" |
| 68 |
bench = false |
| 69 |
|
| 70 |
[[test]] |
| 71 |
name = "serde" |
| 72 |
path = "tests/serde.rs" |
| 73 |
required-features = ["serde"] |
| 74 |
|
| 75 |
[[bench]] |
| 76 |
name = "construct" |
| 77 |
path = "benches/construct.rs" |
| 78 |
harness = false |
| 79 |
|
| 80 |
[[bench]] |
| 81 |
name = "overview" |
| 82 |
path = "benches/overview.rs" |
| 83 |
harness = false |
| 84 |
|
| 85 |
[[bench]] |
| 86 |
name = "read" |
| 87 |
path = "benches/read.rs" |
| 88 |
harness = false |
| 89 |
|
| 90 |
[[bench]] |
| 91 |
name = "serde" |
| 92 |
path = "benches/serde.rs" |
| 93 |
harness = false |
| 94 |
required-features = ["serde"] |
| 95 |
|
| 96 |
[dependencies.databake] |
| 97 |
version = "0.2.0" |
| 98 |
optional = true |
| 99 |
default-features = false |
| 100 |
|
| 101 |
[dependencies.displaydoc] |
| 102 |
version = "0.2.3" |
| 103 |
default-features = false |
| 104 |
|
| 105 |
[dependencies.serde_core] |
| 106 |
version = "1.0.220" |
| 107 |
optional = true |
| 108 |
default-features = false |
| 109 |
|
| 110 |
[dependencies.zerovec] |
| 111 |
version = "0.11.3" |
| 112 |
optional = true |
| 113 |
default-features = false |
| 114 |
|
| 115 |
[dev-dependencies.bincode] |
| 116 |
version = "1.3.1" |
| 117 |
|
| 118 |
[dev-dependencies.postcard] |
| 119 |
version = "1.0.3" |
| 120 |
features = ["use-std"] |
| 121 |
default-features = false |
| 122 |
|
| 123 |
[dev-dependencies.rand] |
| 124 |
version = "0.9" |
| 125 |
features = ["small_rng"] |
| 126 |
|
| 127 |
[dev-dependencies.serde_json] |
| 128 |
version = "1.0.45" |
| 129 |
features = ["alloc"] |
| 130 |
|
| 131 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] |
| 132 |
version = "0.5.0" |