From f568d97b7ad41bdeeb4d07c61fad468bc83ad3f6 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 01:24:49 +0000 Subject: config: clap, serde, toml and tracing are features, none default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- crates/config/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/config/src/lib.rs') 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; -- cgit v1.3.1