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. --- Cargo.toml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index e06ea1a..4ec2cbc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,9 @@ +# The node, and the libraries it is made with that other programs use too. Tests, +# checks and builds take them all in unless told otherwise. +[workspace] +members = ["crates/config"] +default-members = [".", "crates/config"] + [package] name = "continuum" version = "0.0.1" @@ -41,6 +47,9 @@ tor = [ most = ["dashboard", "federation", "libp2p", "mycelium", "tor"] [dependencies] +# What a configuration is made of, from files and arguments: a crate of its own, for +# other programs to make theirs alike. +config = { path = "crates/config" } anyhow = "1.0" # The tor feature: arti's crates are released together, at the same version. arti-client = { version = "0.48", optional = true, features = ["onion-service-client", "onion-service-service", "static-sqlite"] } -- cgit v1.3.1