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 /docs/lifecycle.md | |
| 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 'docs/lifecycle.md')
| -rw-r--r-- | docs/lifecycle.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/lifecycle.md b/docs/lifecycle.md index e6ac31b..3140fa8 100644 --- a/docs/lifecycle.md +++ b/docs/lifecycle.md @@ -22,7 +22,7 @@ stateDiagram-v2 In the code there are two lifecycle states, `Joining` and `Ready` (`NodeLifecycle`); rejoining is `Joining` with the swarm ID kept, and starting and stopping are what -[`main.rs`](../src/main.rs) does before and after. The phases below are the operator's view. +`run` ([`lib.rs`](../src/lib.rs)) does before and after. The phases below are the operator's view. | Phase | Reads | Writes | Registers, votes, syncs as a source | Files written | |---|---|---|---|---| |
