aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 21:38:52 +0000
committertv <tv@krebsco.de>2026-11-16 23:07:02 +0100
commit0023300b417b2375026750b1b0924adfd94c4e03 (patch)
tree31d7dc44200ecbb25400a96327bfb410140a9790 /Cargo.toml
parent96eacbbd2df4127920976fc2e7c4efc53cd83f52 (diff)
continuum is a library
Everything the node is moves from the binary into a library (`src/lib.rs`), so that other binaries can use it: a party's client of a federation next. The node's binary (`src/main.rs`) runs it (`continuum::run`), which wires things together as `main` did. The library's doc comments are prose, not examples to test (`doctest = false`); its tests are the library's, as `cargo quick` and `cargo sim` run them.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml5
1 files changed, 5 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 8a372a0..ed08f98 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,11 @@ edition = "2024"
# The transports are features, none of them default: a build has those it names, at
# least one (`--features mycelium`, `--features libp2p,tor`, ...).
+# The node is a library (`src/lib.rs`), which the binaries use: the node itself
+# (`src/main.rs`). Its doc comments are prose, not examples to test.
+[lib]
+doctest = false
+
[features]
tokio-console = ["dep:console-subscriber"]
# A dashboard of the node and a map of the swarm in the HTTP API (`/admin/dashboard`).