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 = "icu_locid_transform"
7description = "API for Unicode Language and Locale Identifiers canonicalization"
8
9authors.workspace = true
10categories.workspace = true
11edition.workspace = true
12homepage.workspace = true
13include.workspace = true
14license.workspace = true
15repository.workspace = true
16rust-version.workspace = true
17version.workspace = true
18
19[package.metadata.cargo-all-features]
20skip_optional_dependencies = true
21# Bench feature gets tested separately and is only relevant for CI
22denylist = ["bench"]
23
24[package.metadata.docs.rs]
25all-features = true
26
27[dependencies]
28icu_locid = { workspace = true, features = ["zerovec"] }
29icu_provider = { workspace = true, features = ["macros"] }
30serde = { workspace = true, features = ["derive", "alloc"], optional = true }
31tinystr = { workspace = true, features = ["alloc", "zerovec"] }
32zerovec = { workspace = true, features = ["yoke"] }
33databake = { workspace = true, optional = true, features = ["derive"] }
34displaydoc = { workspace = true }
35
36icu_locid_transform_data = { workspace = true, optional = true }
37
38[dev-dependencies]
39serde = { workspace = true, features = ["derive"] }
40serde_json = { workspace = true }
41icu = { path = "../../components/icu", default-features = false }
42writeable = { path = "../../utils/writeable" }
43
44[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
45criterion = { workspace = true }
46
47[lib]
48bench = false # This option is required for Benchmark CI
49
50[features]
51default = ["compiled_data"]
52std = []
53bench = ["serde"]
54serde = ["dep:serde", "icu_locid/serde", "tinystr/serde", "zerovec/serde", "icu_provider/serde"]
55datagen = ["serde", "dep:databake", "zerovec/databake", "icu_locid/databake", "tinystr/databake"]
56compiled_data = ["dep:icu_locid_transform_data"]
57
58[[bench]]
59name = "locale_canonicalizer"
60harness = false
61
62[[test]]
63name = "locale_canonicalizer"
64required-features = ["serde"]
65