Skip to main content

resolve_with_context

Function resolve_with_context 

Source
pub fn resolve_with_context(
    registry: Registry,
    layers: Layers<'_>,
    context: ResolutionContext<'_>,
) -> Result<Resolved, LayerError>
Expand description

Resolve every setting with explicit runtime context.

A configured value before deprecated_warn_at is accepted without a deprecation warning. At that release it is accepted with a warning. At deprecated_remove_at it is ignored with a WarningKind::Removed warning, just like an unsupported configuration key costs only that value rather than failing the whole file. Declared defaults remain the floor: the gate removes external contributions, not the compiled setting from the caller’s Rust type.

Missing or unreadable versions are conservative in both directions: they warn, because silence can hide a deprecation forever, but do not remove a value, because uncertainty must not silently change configuration.