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