-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
45 lines (41 loc) · 1.38 KB
/
Cargo.toml
File metadata and controls
45 lines (41 loc) · 1.38 KB
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
[package]
name = "hexcfg"
version = "1.1.4"
edition = "2021"
authors = ["Dave Grantham <dwg@linuxprogrammer.org>"]
license = "Apache-2.0"
description = "A hexagonal architecture configuration loading crate with multi-source support"
repository = "https://github.com/cryptidtech/hexcfg"
homepage = "https://github.com/cryptidtech/hexcfg"
keywords = ["config", "configuration", "yaml", "environment", "etcd"]
categories = ["config", "development-tools"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_yaml = { version = "0.9", optional = true }
thiserror = "1.0"
directories = "5.0"
tracing = "0.1"
once_cell = "1.19"
# Optional features
clap = { version = "4.0", optional = true }
etcd-client = { version = "0.12", optional = true }
redis = { version = "0.23", optional = true, features = ["tokio-comp"] }
notify = { version = "6.0", optional = true }
tokio = { version = "1.0", optional = true, features = ["full"] }
[dev-dependencies]
proptest = "1.0"
tempfile = "3.0"
tokio-test = "0.4"
testcontainers = "0.23"
testcontainers-modules = { version = "0.10", features = ["redis"] }
tracing-subscriber = "0.3"
[features]
default = ["yaml", "env", "cli"]
yaml = ["dep:serde_yaml"]
env = []
cli = ["dep:clap"]
reload = ["dep:notify"]
etcd = ["dep:etcd-client", "dep:tokio"]
redis = ["dep:redis", "dep:tokio"]
remote = ["etcd", "redis"]
full = ["yaml", "env", "cli", "reload", "remote"]