-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
65 lines (55 loc) · 1.47 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
55
56
57
58
59
60
61
62
63
64
65
[package]
name = "xcfg-rs"
version = "0.3.1"
edition = "2021"
description = "A simple configuration file parser for Rust"
license = "MIT"
repository = "https://github.com/kumudiaorong/xcfg-rs.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "xcfg"
path = "src/lib.rs"
[features]
default = ["toml"]
derive = ["dep:xcfg-derive"]
toml = ["dep:toml"]
yaml = ["dep:serde_yml"]
json = ["dep:serde_json"]
full = ["derive", "toml", "yaml", "json"]
[dependencies]
xcfg-derive = { version = "0.1.0", path = "derive", optional = true }
thiserror = "1.0.64"
serde = { version = "1.0.196" }
toml = { version = "0.8.10", optional = true }
serde_yml = { version = "0.0.12", optional = true }
serde_json = { version = "1.0.128", optional = true }
[dev-dependencies]
serde = { version = "1.0.196", features = ["derive"] }
toml = { version = "0.8.10" }
serde_yml = { version = "0.0.12" }
serde_json = { version = "1.0.128" }
scopeguard = "1.2.0"
[[test]]
name = "any-test"
path = "tests/any_test.rs"
required-features = ["full"]
[[test]]
name = "toml-test"
path = "tests/toml_test.rs"
required-features = ["toml"]
[[test]]
name = "yaml-test"
path = "tests/yaml_test.rs"
required-features = ["yaml"]
[[test]]
name = "json-test"
path = "tests/json_test.rs"
required-features = ["json"]
[[test]]
name = "load-test"
path = "tests/load.rs"
required-features = ["full"]
[[example]]
name = "full"
path = "example/full.rs"
required-features = ["full"]