Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    top_toml: &str,
    project_toml: Option<&str>,
    opts: &ResolveOptions,
) -> Result<Resolved, ResolveError>
Expand description

§3.5’s resolver entry point: top_toml is the file being resolved (e.g. the user’s config) — it may set extends (steps 1-3). project_toml is an optional second, untrusted layer (§3.3) — ALWAYS sanitized and clamped before merge (step 4), regardless of what it sets. opts controls step 5’s strictness. Steps 6-7 (module validation, Config materialization) run last, over the fully-folded result.