Skip to main content

save

Function save 

Source
pub fn save(
    root: &Path,
    world: World,
    vault: BTreeMap<String, String>,
) -> Result<WorldSaved, Error>
Expand description

harness.v1.world.save: write a world into our own folder.

An existing root is loaded first: its io bookkeeping is what tells the encoder which artifacts are unchanged, so a save of an unmodified world leaves every byte alone. vault is merged into the loaded one — a caller that sends no secrets keeps the home’s own .env.