Skip to main content

manta_shared/
lib.rs

1//! Shared library used by both `manta-cli` and `manta-server`.
2//!
3//! Top-level modules:
4//!
5//! - [`shared`] — wire-shaped data (request `*Params`, response DTOs, SAT
6//!   YAML parser, cluster-status helpers).
7//! - [`common`] — config loader / TOML schema, audit + Kafka producer,
8//!   JWT helpers, `AppContext`/`InfraContext`, tracing setup, and the
9//!   network-reachability probe.
10//!
11//! The backend bridge (`StaticBackendDispatcher`, the CSM/OCHAMI trait
12//! impls, and `authorization` helpers that take a `&StaticBackendDispatcher`)
13//! lives in `manta-server`; the CLI never reaches it.
14
15// Every public item in this crate must carry a `///` doc comment.
16// We're a publishable crate (`publish = true`); the docs.rs page is
17// the primary external interface and stale-or-missing docs there are
18// user-facing. CI's `cargo doc` step keeps this honest.
19#![deny(missing_docs)]
20
21pub mod common;
22pub mod shared;