| 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 = "icu_locale_core" |
| 7 |
description = "API for managing Unicode Language and Locale Identifiers" |
| 8 |
|
| 9 |
authors.workspace = true |
| 10 |
categories.workspace = true |
| 11 |
edition.workspace = true |
| 12 |
homepage.workspace = true |
| 13 |
include.workspace = true |
| 14 |
license.workspace = true |
| 15 |
repository.workspace = true |
| 16 |
rust-version.workspace = true |
| 17 |
version.workspace = true |
| 18 |
|
| 19 |
[package.metadata.docs.rs] |
| 20 |
all-features = true |
| 21 |
|
| 22 |
[dependencies] |
| 23 |
displaydoc = { workspace = true } |
| 24 |
litemap = { workspace = true } |
| 25 |
tinystr = { workspace = true } |
| 26 |
writeable = { workspace = true } |
| 27 |
|
| 28 |
databake = { workspace = true, features = ["derive"], optional = true } |
| 29 |
serde = { workspace = true, optional = true } |
| 30 |
zerovec = { workspace = true, optional = true } |
| 31 |
|
| 32 |
[features] |
| 33 |
databake = ["dep:databake", "alloc"] |
| 34 |
serde = ["dep:serde", "tinystr/serde"] |
| 35 |
zerovec = ["dep:zerovec", "tinystr/zerovec"] |
| 36 |
alloc = ["litemap/alloc", "tinystr/alloc", "writeable/alloc", "serde?/alloc"] |
| 37 |
|
| 38 |
[lib] |
| 39 |
bench = false # This option is required for Benchmark CI |
| 40 |
|
| 41 |
[[bench]] |
| 42 |
name = "subtags" |
| 43 |
harness = false |
| 44 |
|
| 45 |
[[bench]] |
| 46 |
name = "langid" |
| 47 |
harness = false |
| 48 |
|
| 49 |
[[bench]] |
| 50 |
name = "locale" |
| 51 |
harness = false |
| 52 |
|
| 53 |
[[bench]] |
| 54 |
name = "iai_langid" |
| 55 |
harness = false |