Expand description
Behavioural helpers shared by manta-cli and manta-server.
The three submodules are intentionally narrow:
config— locates and parsescli.toml/server.toml, honouringMANTA_CLI_CONFIG/MANTA_SERVER_CONFIGand mergingMANTA_*-prefixed environment overrides. Returns an untyped::config::Configso each binary owns its own typed schema.error— theerror::MantaErrorenum returned by every fallible helper in this crate; the server bridges it to itsBackendErrorat call sites.log_ops— singleconfigure(...)entry point both binaries call once at startup to install the tracing subscriber.
Modules§
- config
- Config-file loaders for
cli.tomlandserver.toml. - error
- Structured error type returned by
manta-shared’s pure helpers. - jwt_ops
- JWT claim extractors used by the audit and authorization paths.
- log_ops
- Tracing-subscriber initialisation shared by both binaries.
Constants§
- DATETIME_
FORMAT - Date-time format string used for displaying timestamps throughout the application (e.g. “04/03/2026 14:30:00”).