language 0.4.1

Typed BCP47 language tags with built-in names, plural metadata, and conversion helpers.
Documentation
[[bin]]
name = "language"
path = "src/main.rs"
required-features = ["codegen"]

[dependencies.icu_locale_core]
features = ["alloc"]
optional = true
version = "2.1"

[dependencies.lingua]
optional = true
version = "1.7"

[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.8"

[dependencies.thiserror]
version = "2.0"

[dependencies.utoipa]
optional = true
version = "5"

[dependencies.whatlang]
optional = true
version = "0.18"

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

[features]
codegen = ["scraper"]
sqlx-mysql = ["sqlx/mysql"]
sqlx-postgres = ["sqlx/postgres"]
sqlx-sqlite = ["sqlx/sqlite"]

[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.4.1"

[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 = "lingua"
path = "tests/lingua.rs"

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

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