-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
46 lines (39 loc) · 1.32 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
[package]
name = "json-gettext"
version = "4.0.10"
authors = ["Magic Len <[email protected]>"]
edition = "2021"
rust-version = "1.69"
repository = "https://github.com/magiclen/json-gettext"
homepage = "https://magiclen.org/json-gettext"
keywords = ["json", "i18n", "multi-language", "static", "rocket"]
categories = ["internationalization"]
description = "A library for getting text from JSON usually for internationalization."
license = "MIT"
include = ["src/**/*", "Cargo.toml", "README.md", "LICENSE", "examples/*"]
[dependencies]
serde = "1"
serde_json = "1"
regex = "1"
unic-langid = { version = "0.9", features = ["macros"], optional = true }
manifest-dir-macros = { version = "0.1.6", features = ["tuple"] }
rocket = { version = "0.5", optional = true }
rocket-accept-language = { version = "0.8", optional = true }
[features]
rocketly = ["rocket"]
langid = ["unic-langid"]
language_region_pair = ["langid"]
language = ["langid"]
region = ["langid"]
[[example]]
name = "hello"
required-features = ["rocket"]
[[example]]
name = "hello_language_region_pair"
required-features = ["rocket", "language_region_pair", "rocket-accept-language"]
[[example]]
name = "hello_language"
required-features = ["rocket", "language", "rocket-accept-language"]
[[example]]
name = "hello_region"
required-features = ["rocket", "region", "rocket-accept-language"]