diff options
| author | tv <tv@krebsco.de> | 2026-11-16 21:38:52 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 23:07:02 +0100 |
| commit | 0023300b417b2375026750b1b0924adfd94c4e03 (patch) | |
| tree | 31d7dc44200ecbb25400a96327bfb410140a9790 /Cargo.toml | |
| parent | 96eacbbd2df4127920976fc2e7c4efc53cd83f52 (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.toml | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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`). |
