Skip to main content

prepare

Function prepare 

Source
pub fn prepare(options: &Options, source: &impl Source) -> Result<PathBuf>
Expand description

Prepare an immutable, minimal-profile static tree. Does not install a toolchain, upload to a server, modify upstream manifests, or claim signature authentication. An existing output is always refused. Failed attempts may leave the reserved output directory; they never produce a completed mirror tree.

Output must be new with an existing parent. Returns its completed mirror child. For multiple hosts/components prefer selection::sync::run.

ยงErrors

Refuses invalid versions/host, existing output, invalid metadata, unavailable payloads, size/hash mismatches or transport/local I/O failures.