Skip to main content

vcon_server/
lib.rs

1//! The vcon-server program. The binary in `main.rs` is a thin front end;
2//! everything it runs lives here so tests can drive it.
3//!
4//! This library is not an API for other crates. It exists for the
5//! vcon-server binary, its tests and its fuzz targets, and any release may
6//! change it without notice: semver covers the program's command line, HTTP
7//! API and data directory, not these modules. To read or check vCons from
8//! Rust, use the [vcon](https://docs.rs/vcon) crate.
9// The API Guidelines' future-proofing rules are for a public library, which
10// this is not (above): its enums and structs are matched and built whole
11// by the binary, tests and fuzz targets.
12#![allow(
13    clippy::exhaustive_enums,
14    clippy::exhaustive_structs,
15    reason = "an internal library: no semver promise, see the crate docs"
16)]
17
18pub mod access;
19#[expect(
20    missing_docs,
21    missing_debug_implementations,
22    clippy::missing_errors_doc,
23    reason = "the Rust style rules, met module by module"
24)]
25pub mod api;
26#[expect(
27    missing_docs,
28    clippy::missing_errors_doc,
29    clippy::must_use_candidate,
30    reason = "the Rust style rules, met module by module"
31)]
32pub mod audit;
33pub(crate) mod backend;
34#[expect(
35    missing_docs,
36    clippy::missing_errors_doc,
37    clippy::multiple_unsafe_ops_per_block,
38    reason = "the Rust style rules, met module by module"
39)]
40pub mod catalog;
41pub mod clock;
42#[expect(
43    missing_docs,
44    clippy::missing_errors_doc,
45    clippy::must_use_candidate,
46    reason = "the Rust style rules, met module by module"
47)]
48pub mod commands;
49pub mod config;
50pub mod console;
51#[expect(
52    missing_docs,
53    clippy::missing_errors_doc,
54    clippy::must_use_candidate,
55    reason = "the Rust style rules, met module by module"
56)]
57pub mod datadir;
58pub mod envelope;
59pub(crate) mod export;
60pub mod fs;
61pub mod ids;
62pub mod mcp;
63pub mod query;
64pub mod retention;
65pub mod reveal;
66pub mod roles;
67pub(crate) mod secret_file;
68#[expect(
69    clippy::missing_errors_doc,
70    clippy::must_use_candidate,
71    reason = "the Rust style rules, met module by module"
72)]
73pub mod serve;
74pub mod session;
75pub mod settings;
76#[expect(
77    missing_docs,
78    missing_debug_implementations,
79    clippy::missing_errors_doc,
80    clippy::must_use_candidate,
81    reason = "the Rust style rules, met module by module"
82)]
83// Its one undocumented panic is in code built only for tests.
84#[cfg_attr(
85    test,
86    expect(
87        clippy::missing_panics_doc,
88        reason = "the Rust style rules, met module by module"
89    )
90)]
91pub mod store;
92#[expect(
93    missing_docs,
94    missing_debug_implementations,
95    clippy::missing_errors_doc,
96    clippy::must_use_candidate,
97    reason = "the Rust style rules, met module by module"
98)]
99// Its one undocumented panic is in code built only for tests.
100#[cfg_attr(
101    test,
102    expect(
103        clippy::missing_panics_doc,
104        reason = "the Rust style rules, met module by module"
105    )
106)]
107pub mod tenants;
108// Its documentation is the module's own, whose links name its parts.
109#[cfg(feature = "tui")]
110pub mod tui;