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 = "litemap" |
7 | version = "0.7.5" |
8 | keywords = ["sorted" , "vec" , "map" , "hashmap" , "btreemap" ] |
9 | description = "A key-value Map implementation based on a flat, sorted Vec." |
10 | documentation = "https://docs.rs/litemap" |
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 | databake = { workspace = true, optional = true } |
27 | serde = { workspace = true, optional = true, features = ["alloc" ]} |
28 | yoke = { workspace = true, features = ["derive" ], optional = true } |
29 | |
30 | [dev-dependencies] |
31 | bincode = { workspace = true } |
32 | icu_benchmark_macros = { path = "../../tools/benchmark/macros" } |
33 | icu_locale_core = { path = "../../components/locale_core" } |
34 | postcard = { workspace = true, features = ["use-std" ] } |
35 | rkyv = { workspace = true, features = ["validation" ] } |
36 | serde = { workspace = true } |
37 | serde_json = { workspace = true } |
38 | |
39 | [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] |
40 | criterion = { workspace = true } |
41 | |
42 | [features] |
43 | default = ["alloc" ] |
44 | alloc = [] |
45 | databake = ["dep:databake" ] |
46 | serde = ["dep:serde" ] |
47 | yoke = ["dep:yoke" ] |
48 | |
49 | # Enables the `testing` module with tools for testing custom stores. |
50 | testing = ["alloc" ] |
51 | |
52 | [lib] |
53 | bench = false # This option is required for Benchmark CI |
54 | |
55 | [[test]] |
56 | name = "serde" |
57 | required-features = ["serde" ] |
58 | |
59 | [[test]] |
60 | name = "store" |
61 | required-features = ["testing" ] |
62 | |
63 | [[example]] |
64 | name = "litemap_bincode" |
65 | path = "examples/litemap_bincode.rs" |
66 | required-features = ["serde" ] |
67 | |
68 | [[example]] |
69 | name = "litemap_postcard" |
70 | path = "examples/litemap_postcard.rs" |
71 | required-features = ["serde" ] |
72 | |
73 | [[bench]] |
74 | name = "litemap" |
75 | harness = false |
76 | required-features = ["serde" ] |
77 | |