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