Skip to main content

Module resolve

Module resolve 

Source
Expand description

One merge, and the provenance is its output.

Precedence is fixed and universal: the command line beats the environment, which beats files, nearest first, which beat the user’s own configuration, which beats the machine’s, which beat the declared defaults. Which layers a CLI has is its own business; their relative order is not negotiable, because a fleet where two CLIs disagree about whether --jobs beats JOBS is the thing this crate exists to end.

Layers are given highest precedence first — the order they read in the builder and the order --help describes them — and folded lowest first, so the last writer wins.

Structs§

Layers
The layers to resolve, highest precedence first.
ResolutionContext
Runtime facts that affect configuration resolution.
Resolved
Everything a resolution produced.

Functions§

resolve
Resolve every setting in registry from layers.
resolve_with_context
Resolve every setting with explicit runtime context.