From bcb729ce0cae2cd8bbd8f60f8e98a81674bcd4fb Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 01:37:39 +0000 Subject: config: the report of a configuration, and --print-config The report moves to the crate, as it was (report::report, Reports, Values): each option of a schema with its value, by the settings in effect given as JSON by option name, and where it came from; imported values and secrets left out. And the argument a program prints it by (arguments::with_print_config, prints_config). continuum gives its settings and what it loaded to it; --print-config and GET /admin/config say what they said. --- docs/architecture.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/architecture.md b/docs/architecture.md index 6827387..5a5d438 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -305,7 +305,7 @@ Roughly by size and by how many rules interact there: | [`swarm/peer/`](../src/swarm/peer/) + [`sync.rs`](../src/swarm/sync.rs) + [`source.rs`](../src/swarm/source.rs) | 2,300 | The protocol state machine: handshake, liveness, sync sessions with deadlines, who syncs with whom while catching up. Timing-dependent; tested on the simulated network ([`simtest/`](../src/simtest/)). | | [`state/`](../src/state/) | 1,600 | `AppState` and its write helpers ([`mod.rs`](../src/state/mod.rs)), `PeerState` ([`peer.rs`](../src/state/peer.rs)), `Timing`, reads ([`read.rs`](../src/state/read.rs)) and the `Host` impl ([`host.rs`](../src/state/host.rs)). A hub, not a layer. | | [`transport/`](../src/transport/) | 11,500 | libp2p ([`libp2p/`](../src/transport/libp2p/), 4,400: addresses, relays, hole punching, which paths to keep), the paths and identity layers (2,300: measuring, failing over, proving node IDs), Mycelium and its daemon ([`mycelium/`](../src/transport/mycelium/), 1,200), Tor (700), the wire format ([`wire.rs`](../src/transport/wire.rs), derived), the simulator. The transports are self-contained behind the `Transport` trait; libp2p's choice of addresses is the subtle part. | -| [`config/`](../src/config/), [`crates/config/`](../crates/config/) | 2,600, 2,300 | The options, the settings they make, their checks and the report; and, in a crate of their own (`config`), which other programs use too, what reads them: files and their includes, arguments, layers and what each value came from, conflicts, importers and placeholders. Self-contained. | +| [`config/`](../src/config/), [`crates/config/`](../crates/config/) | 2,600, 2,300 | The options, the settings they make, and their checks; and, in a crate of their own (`config`), which other programs use too, what reads them: files and their includes, arguments, layers and what each value came from, conflicts, the report, importers and placeholders. Self-contained. | | [`document/store.rs`](../src/document/store.rs) | 1,200 | Conflict-aware JSON over Automerge. Subtle (merged maps, canonical writes), well covered by the rest relying on it. | | [`swarm/topology/`](../src/swarm/topology/), [`blob.rs`](../src/swarm/blob.rs) | 1,500 | Pure algorithms with tests; the topology hashes each member once, then scores the N² pairs by cheap mixing. | | [`api/`](../src/api/) | 3,600 | Handlers; the Prometheus rendering is the longest file. The dashboard's page ([`dashboard.html`](../src/api/dashboard/dashboard.html), 2,000 more) is one file of HTML, CSS and script. | -- cgit v1.3.1