Skip to main content

startup_stages

Function startup_stages 

Source
pub fn startup_stages(requested: &[impl AsRef<str>]) -> Vec<Vec<String>>
Expand description

Compute startup stages from the factory dependency graph.

Only services present in requested are included. Dependencies that are not in requested are silently ignored (they may already be running or managed externally).

Returns stages where stage 0 has no dependencies, stage 1 depends only on stage 0, etc.

ยงPanics

Panics if the dependency graph contains a cycle (should not happen with a well-formed depends_on declaration).