Skip to main content

Crate manta_shared

Crate manta_shared 

Source
Expand description

Shared library used by both manta-cli and manta-server.

Top-level modules:

  • types — wire-shaped data (request *Params, response DTOs, cluster-status helpers). The CLI↔server API contract — both binaries serialize and deserialize through these types.
  • common — bi-binary behavioural helpers: the config loader (returns an untyped ::config::Config), MantaError, and log_ops::configure(...). Single-binary helpers (audit, kafka, jwt_ops, the SAT-file Jinja renderer) and the typed config schemas (CliConfiguration, ServerConfiguration, Auditor/Kafka) live with whichever binary uses them.

The backend bridge (StaticBackendDispatcher, the CSM/OCHAMI trait impls, and authorization helpers that take a &StaticBackendDispatcher) lives in manta-server; the CLI never reaches it.

Modules§

common
Behavioural helpers used by both binaries: config loader, error type, log-init helper. log_ops is bi-binary; both manta-cli and manta-server configure(...) the tracing subscriber on startup.
types
Wire types shared between the manta-cli and manta-server binaries — the CLI↔server API contract.