[[bin]]
name = "language"
path = "src/main.rs"
required-features = ["codegen"]
[dependencies.icu_locale_core]
features = ["alloc"]
optional = true
version = "2.1"
[dependencies.scraper]
optional = true
version = "0.25"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1.0"
[dependencies.sqlx]
default-features = false
optional = true
version = "0.7"
[dependencies.thiserror]
optional = true
version = "2.0"
[dependencies.whatlang]
optional = true
version = "0.18"
[dev-dependencies.serde_json]
version = "1.0"
[features]
codegen = ["scraper"]
icu_locale_core = ["dep:icu_locale_core", "thiserror"]
sqlx-mysql = ["sqlx/mysql", "thiserror"]
sqlx-postgres = ["sqlx/postgres", "thiserror"]
sqlx-sqlite = ["sqlx/sqlite", "thiserror"]
whatlang = ["dep:whatlang", "thiserror"]
[lib]
name = "language"
path = "src/lib.rs"
[package]
authors = ["Xavier Lau <x@acg.box>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["internationalization", "parsing"]
description = "Typed BCP47 language tags with built-in names, plural metadata, and conversion helpers."
edition = "2024"
homepage = "https://hack.ink/language"
keywords = ["bcp47", "i18n", "language", "language-tag", "locale"]
license = "GPL-3.0"
name = "language"
readme = "README.md"
repository = "https://github.com/hack-ink/language"
resolver = "3"
version = "0.2.2"
[package.metadata.docs.rs]
all-features = true
[profile.ci-dev]
incremental = false
inherits = "dev"
[profile.ci-release]
inherits = "release"
lto = true
[[test]]
name = "icu_locale"
path = "tests/icu_locale.rs"
[[test]]
name = "language"
path = "tests/language.rs"
[[test]]
name = "whatlang"
path = "tests/whatlang.rs"