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