[package]
edition = "2024"
rust-version = "1.88"
name = "intl"
version = "0.5.2"
build = false
include = [
"src/**/*.rs",
"src/cldr/*.bin",
"src/unicode/*.bin",
"Cargo.toml",
"README.md",
"LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust, no_std internationalization primitives (a pure-Rust ICU analog). The `unicode` module provides General_Category, character predicates, scripts, East Asian Width, numeric values, case mapping/folding, UAX #15 normalization (NFC/NFD/NFKC/NFKD), and UTS #10 collation — property tables compiled into const-fn match lookups, with feature-selectable codepoint ranges."
readme = "README.md"
keywords = [
"intl",
"unicode",
"no_std",
"i18n",
"ucd",
]
categories = [
"no-std",
"internationalization",
"text-processing",
]
license = "MIT"
repository = "https://github.com/KarpelesLab/intlrs"
[features]
_cldr = []
alloc = ["full"]
ascii = []
bidi = []
bmp = ["latin1"]
calendars-extra = ["datetime"]
case = [
"normalization",
"segmentation",
]
collation = [
"case",
"alloc",
"_cldr",
]
collation-zh = ["collation"]
confusables = [
"normalization",
"alloc",
]
currency = ["number"]
datetime = ["number"]
default = [
"full",
"alloc",
"names",
"normalization",
"segmentation",
"bidi",
"case",
"identifiers",
"collation",
"idna",
"confusables",
"iana-tz",
"number",
"currency",
"units",
"datetime",
"calendars-extra",
"displaynames",
"list",
"relative",
"message",
"spellout",
"transliterate",
"locale",
]
displaynames = ["_cldr"]
full = ["bmp"]
iana-tz = [
"dep:timezone-data",
"datetime",
]
identifiers = []
idna = [
"normalization",
"alloc",
"bidi",
]
latin1 = ["ascii"]
list = [
"alloc",
"_cldr",
]
locale = [
"alloc",
"_cldr",
]
message = ["number"]
names = ["alloc"]
normalization = []
number = [
"alloc",
"_cldr",
]
relative = ["number"]
segmentation = []
segmentation-dict = ["segmentation"]
segmentation-dict-cjk = [
"segmentation-dict",
"alloc",
"normalization",
]
segmentation-dict-km = ["segmentation-dict"]
segmentation-dict-lao = ["segmentation-dict"]
segmentation-dict-my = ["segmentation-dict"]
spellout = [
"alloc",
"_cldr",
]
transliterate = [
"alloc",
"normalization",
]
units = ["number"]
[lib]
name = "intl"
path = "src/lib.rs"
[dependencies.timezone-data]
version = "0.1"
optional = true
[dev-dependencies.criterion]
version = "0.5"
default-features = false