-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
54 lines (47 loc) · 1.6 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[package]
name = "lang-id"
version = "0.0.1"
edition = "2024"
license = "MIT/Apache-2.0"
authors = ["Moe <[email protected]>"]
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."
exclude = ["/rust-toolchain.toml"]
[features]
default = ["sys-locale", "match"]
# default = ["sys-lang", "match", "map"]
#
# alloc = []
# std = ["alloc", "compact_str?/std"]
std = []
map = ["dep:phf", "dep:tinystr"]
sys-locale = ["dep:sys-locale", "std"]
match = []
[dependencies]
tap = "1.0"
phf = { version = "0.11", optional = true, default-features = false }
tinystr = { version = "0.8", optional = true, default-features = false }
unic-langid = { version = "0.9", features = ["likelysubtags"] }
sys-locale = { version = "0.3", optional = true }
# [target.'cfg(target_arch = "wasm32")'.dependencies]
# sys-locale = { version = "0.3.0", optional = true, features = ["js"] }
# [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
[dev-dependencies]
anyhow = "1.0.96"
compact_str = { version = "0.8.1", features = ["serde"] }
# compact_str = { version = "0.8", optional = true, default-features = false }
itertools = "0.14"
phf_codegen = "0.11"
serde = { version = "1.0.218", features = ["serde_derive"] }
serde_json = "1.0.139"
shlex = "1.3"
# [build-dependencies]
# phf_codegen = "0.11"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "__unstable_doc"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(__unstable_doc)'] }