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