Skip to main content

setup

Function setup 

Source
pub fn setup(
    directory: &Path,
    interrupted: impl FnMut() -> bool,
) -> Result<PathBuf, Box<dyn Error>>
Expand description

Explicitly prepare or admit the reviewed bundle, retaining failed attempts.

Downloads only when the selected bundle is absent. Cooperating setups share one lock; existing bundles must pass the same offline check admission. interrupted lets the caller request bounded downloader cancellation without this library installing process-global signal handlers.

ยงErrors

Returns path, lock, download, authentication, decoding, publication or executable/version failures. Retained evidence is never automatically removed.