aboutsummaryrefslogtreecommitdiffstats
path: root/crates/config/src/lib.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-29 01:24:49 +0000
committertv <tv@krebsco.de>2026-11-29 01:24:49 +0000
commitf568d97b7ad41bdeeb4d07c61fad468bc83ad3f6 (patch)
tree4176b4be5bb27fcc6108a0c32c2da4376576a15f /crates/config/src/lib.rs
parentf10ee79ddc2b0a541f1011aa395990df21e456b5 (diff)
config: clap, serde, toml and tracing are features, none default
A program names what it uses of the crate: * clap: the command line (arguments); * serde: what the values set are read into (layer::read), and durations and sizes as fields (units::duration_option, …); * toml: configuration files in TOML; without it a .toml file is refused, saying so, and files are JSON; * tracing: what a source replaces of an earlier one's, logged. continuum names all four.
Diffstat (limited to 'crates/config/src/lib.rs')
-rw-r--r--crates/config/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/config/src/lib.rs b/crates/config/src/lib.rs
index fe2432e..aae8bce 100644
--- a/crates/config/src/lib.rs
+++ b/crates/config/src/lib.rs
@@ -3,11 +3,13 @@
//!
//! * [`option`]: the options a program takes, described once (`Schema`);
//! * [`file`]: configuration files, TOML or JSON, including others;
-//! * [`arguments`]: the command line, and files and arguments put together;
+//! * [`arguments`]: the command line, and files and arguments put together (with the
+//! feature `clap`);
//! * [`layer`]: values and where they came from, later sources over earlier ones;
//! * [`import`]: values taken from elsewhere instead of written out;
//! * [`units`]: durations and sizes as operators write them.
+#[cfg(feature = "clap")]
pub mod arguments;
pub mod file;
pub mod import;