-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
33 lines (29 loc) · 1.05 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[package]
name = "lang-id"
version = "0.0.1-beta.3"
edition = "2021"
license = "MIT/Apache-2.0"
authors = ["Moe <m@tmoe.me>"]
categories = ["internationalization", "localization"]
readme = "Readme.md"
repository = "https://github.com/2moe/lang-id"
description = "Const lang-ids and maps are provided, mainly for i18n and l10n."
[features]
default = ["sys-lang", "match"]
map = ["dep:phf", "dep:tinystr"]
sys-lang = ["dep:sys-locale"]
match = []
[dependencies]
phf = { version = "0.11.1", optional = true, default-features = false, features = [
"macros",
] }
tinystr = { version = "0.7.1", optional = true, default-features = false }
unic-langid = { version = "0.9.1", features = ["likelysubtags"] }
# [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
sys-locale = { version = "0.3.0", optional = true }
# [target.'cfg(target_arch = "wasm32")'.dependencies]
# sys-locale = { version = "0.3.0", optional = true, features = ["js"] }
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "__lang_id_doc"]