aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-28 22:11:12 +0000
committertv <tv@krebsco.de>2026-11-29 00:22:34 +0000
commit479246f98be360b5943458bd58d07e6d46f81fd0 (patch)
tree0931722a9151e5f65180e8260f9e3faf7780c1ab /src/config/mod.rs
parentfdfe968d7abb6470e65253a720f87b82f5d5e388 (diff)
config: what a configuration imports by, in a crate of its own
Importers and placeholders (env:, file:, cmd:, ${…}, +json, $$, the tables) move from config::import to the crate config, crates/config, as its module import, as they were, public: the crate is for what a program's configuration is made of, from its files and its arguments, and other programs make theirs with it. The repository is a workspace of the node and that crate, both default members, so that cargo quick, cargo sim and clippy take in both.
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index cfc2c76..fd1f8e1 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -11,7 +11,6 @@
//! into [`Settings`] and checked.
mod file;
-mod import;
use std::collections::BTreeMap;
use std::net::SocketAddr;
@@ -25,7 +24,7 @@ use serde::{Deserialize, Serialize};
use serde_json::Value as JsonValue;
use tracing::{debug, info, warn};
-use import::{Imported, Raw};
+use ::config::import::{self, Imported, Raw};
/// How an option's value is written as text (command line, text imports).
#[derive(Debug, Clone, Copy, PartialEq, Eq)]