-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
38 lines (33 loc) · 1.04 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
[package]
name = "clap-adapters"
version = "0.2.1"
edition = "2021"
repository = "https://github.com/nicholastmosher/clap-adapters"
license = "MIT OR Apache-2.0"
readme = "README.md"
description = "Neat adapters for parsing config files with clap"
[features]
default = ["full"]
full = ["reloading", "periodic"]
reloading = ["tokio/rt", "tokio-stream", "notify"]
periodic = ["tokio", "tokio-stream"]
[[example]]
name = "reloading"
path = "examples/reloading.rs"
required-features = ["reloading", "tokio/full"]
[dependencies]
anyhow = "1.0.75"
clap = { version = "4.4.11", features = ["derive", "env"] }
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
serde_yaml = "0.9.27"
toml = "0.8.8"
tracing = "0.1.40"
# Optional dependencies
notify = { version = "6.1.1", optional = true }
tokio = { version = "1.34.0", features = ["sync"], optional = true }
tokio-stream = { version = "0.1.14", features = ["sync"], optional = true }
[dev-dependencies]
anyhow = "1.0.75"
tempfile = "3.8.1"
tokio = { version = "1", features = ["full"] }