From 479246f98be360b5943458bd58d07e6d46f81fd0 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 28 Nov 2026 22:11:12 +0000 Subject: config: what a configuration imports by, in a crate of its own MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/config/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/config/mod.rs') 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)] -- cgit v1.3.1