lang-id 0.0.20

Const lang-ids and maps are provided, mainly for i18n and l10n.
Documentation
[dependencies.compact_str]
default-features = false
optional = true
version = "0.9"

[dependencies.libc]
default-features = false
optional = true
version = "0.2"

[dependencies.phf]
default-features = false
optional = true
version = "0.11"

[dependencies.sys-locale]
default-features = false
optional = true
version = "0.3"

[dependencies.tap]
version = "1.0"

[dependencies.tinystr]
default-features = false
version = "0.8"

[dependencies.unic-langid]
features = ["likelysubtags"]
version = "0.9"

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.itertools]
version = "0.14"

[dev-dependencies.phf_codegen]
version = "0.11"

[dev-dependencies.serde]
features = ["serde_derive"]
version = "1.0"

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.shlex]
version = "1.3"

[dev-dependencies.testutils]
version = "0.0.5"

[features]
compact_str = ["dep:compact_str"]
consts = []
default = ["match"]
map = ["dep:phf", "compact_str"]
match = []
nostd-sys-locale = ["compact_str", "dep:libc", "dep:widestring", "dep:windows-sys"]
serde = ["unic-langid/serde", "compact_str?/serde"]
std = []
sys-locale = ["dep:sys-locale", "std"]

[lib]
name = "lang_id"
path = "src/lib.rs"

[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(__unstable_doc)"]
level = "warn"
priority = 0

[package]
authors = ["Moe <m@tmoe.me>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["internationalization", "localization"]
description = "Const lang-ids and maps are provided, mainly for i18n and l10n."
edition = "2024"
exclude = ["/rust-toolchain.toml", "/.github/"]
license = "MIT/Apache-2.0"
name = "lang-id"
readme = "docs/Readme.md"
repository = "https://github.com/2moe/lang-id"
rust-version = "1.85"
version = "0.0.20"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "__unstable_doc"]

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.sys-locale]
features = ["js"]
optional = true
version = "0.3"

[target."cfg(windows)".dependencies.widestring]
default-features = false
features = ["alloc"]
optional = true
version = "1.2.0"

[target."cfg(windows)".dependencies.windows-sys]
default-features = false
features = ["Win32_Globalization"]
optional = true
version = "0.59"

[[test]]
name = "desc_map"
path = "tests/desc_map.rs"

[[test]]
name = "doc"
path = "tests/doc.rs"

[[test]]
name = "fmt"
path = "tests/fmt.rs"

[[test]]
name = "max_map"
path = "tests/max_map.rs"

[[test]]
name = "min_map"
path = "tests/min_map.rs"

[[test]]
name = "territories"
path = "tests/territories.rs"

[[test]]
name = "territory_containment"
path = "tests/territory_containment.rs"