Skip to main content

Module validator

Module validator 

Source
Expand description

Cross-subsystem configuration validation and startup warnings.

validate_subsystems_config inspects the assembled ServerSubsystems for common misconfigurations and emits human-readable warnings. It does not abort startup — callers decide how to surface warnings (log them, return them in a health response, fail hard in tests, etc.).

§When to call

Call once during server startup, after ServerSubsystemsBuilder::build succeeds but before the server begins accepting requests:

ⓘ
let warnings = validate_subsystems_config(&subsystems);
for w in &warnings {
    tracing::warn!(warning = %w, "Subsystems config advisory");
}

Enums§

SubsystemConfigWarning
A non-fatal configuration advisory emitted by validate_subsystems_config.

Functions§

validate_subsystems_config
Inspect subsystems for common misconfigurations and return advisory warnings.