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:

  • shared — wire-shaped data (request *Params, response DTOs, cluster-status helpers). Genuinely used by both binaries.
  • common — behavioural helpers. Mixed audience: the config loader and error types are bi-binary by use; app_context, log_ops, and sat_file are CLI-only; audit, kafka, and jwt_ops are server-only after the CLI lost its audit emission. The single-binary entries live here until a per-binary split happens.

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. Bi-binary by use: config, error. CLI-only by use: app_context, log_ops, sat_file. Server-only by use: audit, kafka, jwt_ops. The single-binary entries live here pending a per-binary split.
shared
Types shared between the CLI and the HTTP server.