Skip to main content

resolve_modules

Function resolve_modules 

Source
pub fn resolve_modules(
    manifests: impl IntoIterator<Item = ModuleManifest>,
) -> Result<Vec<ResolvedModule>, ModuleGraphError>
Expand description

Resolve manifests into a stable provider-before-consumer startup order.

§Errors

Returns an error for invalid manifests, duplicate declarations or providers, missing required capabilities, and dependency cycles.

§Panics

This function does not panic for a valid manifest set. Internal lookups use assertions to defend the graph invariants established during resolution.