| 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.7.6" |
| 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.workspace = true |
| 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 = { workspace = true, features = ["alloc" ], 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 } |
| 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 = [] |
| 44 | bench = [] |
| 45 | std = [] |
| 46 | |
| 47 | [package.metadata.cargo-all-features] |
| 48 | # Bench feature gets tested separately and is only relevant for CI |
| 49 | denylist = ["bench" ] |
| 50 | |
| 51 | [lib] |
| 52 | bench = false # This option is required for Benchmark CI |
| 53 | |
| 54 | [[test]] |
| 55 | name = "serde" |
| 56 | required-features = ["serde" ] |
| 57 | |
| 58 | [[bench]] |
| 59 | name = "overview" |
| 60 | harness = false |
| 61 | |
| 62 | [[bench]] |
| 63 | name = "construct" |
| 64 | harness = false |
| 65 | required-features = ["bench" ] |
| 66 | |
| 67 | [[bench]] |
| 68 | name = "read" |
| 69 | harness = false |
| 70 | required-features = ["bench" ] |
| 71 | |
| 72 | [[bench]] |
| 73 | name = "serde" |
| 74 | harness = false |
| 75 | required-features = ["bench" , "serde" ] |
| 76 | |