aboutsummaryrefslogtreecommitdiffstats
path: root/crates/config/Cargo.toml
blob: a025f3d23d896736c89fc89eb05742b265adbab4 (plain)
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
# What a configuration is made of, from files and arguments (`src/lib.rs`): what
# continuum's is made with, as a library for other programs to make theirs alike.
[package]
name = "config"
version = "0.1.0"
edition = "2024"

# Its doc comments are prose, not examples to test.
[lib]
doctest = false

# None of them default: a program names what it uses.
[features]
# The command line (`arguments`): the options as arguments, `--config`, `--unset`.
clap = ["dep:clap"]
# What the values set are read into (`layer::read`), and durations and sizes as fields
# (`units::duration_option`, …).
serde = ["dep:serde"]
# Configuration files in TOML; without, in JSON alone.
toml = ["dep:toml"]
# What a source replaces of an earlier one's, logged.
tracing = ["dep:tracing"]

[dependencies]
anyhow = "1.0"
clap = { version = "4.6", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = "1.0"
toml = { version = "1.1", optional = true }
tracing = { version = "0.1", optional = true }

[dev-dependencies]
serde = { version = "1.0", features = ["derive"] }