| 1 |
# This file is part of ICU4X. For terms of use, please see the file |
| 2 |
# called LICENSE at the top level of the ICU4X source tree |
| 3 |
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). |
| 4 |
|
| 5 |
[package] |
| 6 |
name = "tinystr" |
| 7 |
description = "A small ASCII-only bounded length string representation." |
| 8 |
version = "0.8.2" |
| 9 |
keywords = ["string", "str", "small", "tiny", "no_std"] |
| 10 |
categories = ["data-structures"] |
| 11 |
|
| 12 |
authors.workspace = true |
| 13 |
edition.workspace = true |
| 14 |
include.workspace = true |
| 15 |
license.workspace = true |
| 16 |
repository.workspace = true |
| 17 |
rust-version = "1.82" |
| 18 |
|
| 19 |
[package.metadata.workspaces] |
| 20 |
independent = true |
| 21 |
|
| 22 |
[package.metadata.docs.rs] |
| 23 |
all-features = true |
| 24 |
|
| 25 |
[dependencies] |
| 26 |
displaydoc = { workspace = true } |
| 27 |
|
| 28 |
serde_core = { workspace = true, optional = true } |
| 29 |
zerovec = { workspace = true, optional = true } |
| 30 |
databake = { workspace = true, optional = true } |
| 31 |
|
| 32 |
[dev-dependencies] |
| 33 |
bincode = { workspace = true } |
| 34 |
postcard = { workspace = true, features = ["use-std"] } |
| 35 |
rand = { workspace = true, features = ["small_rng"] } |
| 36 |
serde_json = { workspace = true, features = ["alloc"] } |
| 37 |
|
| 38 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] |
| 39 |
criterion = { workspace = true } |
| 40 |
|
| 41 |
[features] |
| 42 |
default = ["alloc"] |
| 43 |
alloc = ["serde_core?/alloc", "zerovec?/alloc"] |
| 44 |
zerovec = ["dep:zerovec"] |
| 45 |
databake = ["dep:databake"] |
| 46 |
serde = ["dep:serde_core"] |
| 47 |
# No longer does anything |
| 48 |
std = [] |
| 49 |
|
| 50 |
[lib] |
| 51 |
bench = false # This option is required for Benchmark CI |
| 52 |
|
| 53 |
[[test]] |
| 54 |
name = "serde" |
| 55 |
required-features = ["serde"] |
| 56 |
|
| 57 |
[[bench]] |
| 58 |
name = "overview" |
| 59 |
harness = false |
| 60 |
|
| 61 |
[[bench]] |
| 62 |
name = "construct" |
| 63 |
harness = false |
| 64 |
|
| 65 |
[[bench]] |
| 66 |
name = "read" |
| 67 |
harness = false |
| 68 |
|
| 69 |
[[bench]] |
| 70 |
name = "serde" |
| 71 |
harness = false |
| 72 |
required-features = ["serde"] |