aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
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 /Cargo.toml
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 'Cargo.toml')
-rw-r--r--Cargo.toml9
1 files changed, 9 insertions, 0 deletions
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"] }