From 0023300b417b2375026750b1b0924adfd94c4e03 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 21:38:52 +0000 Subject: 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. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Cargo.toml') 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`). -- cgit v1.3.1