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 masked;
63pub mod mcp;
64pub mod query;
65pub mod retention;
66pub mod reveal;
67pub mod roles;
68pub(crate) mod secret_file;
69#[expect(
70    clippy::missing_errors_doc,
71    clippy::must_use_candidate,
72    reason = "the Rust style rules, met module by module"
73)]
74pub mod serve;
75pub mod session;
76pub mod settings;
77#[expect(
78    missing_docs,
79    missing_debug_implementations,
80    clippy::missing_errors_doc,
81    clippy::must_use_candidate,
82    reason = "the Rust style rules, met module by module"
83)]
84// Its one undocumented panic is in code built only for tests.
85#[cfg_attr(
86    test,
87    expect(
88        clippy::missing_panics_doc,
89        reason = "the Rust style rules, met module by module"
90    )
91)]
92pub mod store;
93#[expect(
94    missing_docs,
95    missing_debug_implementations,
96    clippy::missing_errors_doc,
97    clippy::must_use_candidate,
98    reason = "the Rust style rules, met module by module"
99)]
100// Its one undocumented panic is in code built only for tests.
101#[cfg_attr(
102    test,
103    expect(
104        clippy::missing_panics_doc,
105        reason = "the Rust style rules, met module by module"
106    )
107)]
108pub mod tenants;
109// Its documentation is the module's own, whose links name its parts.
110#[cfg(feature = "tui")]
111pub mod tui;