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 = "writeable" |
7 | description = "A more efficient alternative to fmt::Display" |
8 | version = "0.5.5" |
9 | |
10 | authors.workspace = true |
11 | edition.workspace = true |
12 | include.workspace = true |
13 | license.workspace = true |
14 | repository.workspace = true |
15 | rust-version.workspace = true |
16 | |
17 | [package.metadata.workspaces] |
18 | independent = true |
19 | |
20 | [package.metadata.docs.rs] |
21 | all-features = true |
22 | |
23 | [dependencies] |
24 | either = { workspace = true, optional = true } |
25 | |
26 | [dev-dependencies] |
27 | icu_benchmark_macros = { path = "../../tools/benchmark/macros" } |
28 | rand = { workspace = true, features = ["small_rng" ] } |
29 | |
30 | [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] |
31 | criterion = { workspace = true } |
32 | |
33 | [features] |
34 | bench = [] |
35 | either = ["dep:either" ] |
36 | |
37 | [package.metadata.cargo-all-features] |
38 | # Bench feature gets tested separately and is only relevant for CI |
39 | denylist = ["bench" ] |
40 | |
41 | [lib] |
42 | bench = false # This option is required for Benchmark CI |
43 | |
44 | [[bench]] |
45 | name = "writeable" |
46 | harness = false |
47 | |