Skip to main content

decompile

Function decompile 

Source
pub fn decompile(
    to: WorldHarness,
    world: World,
    source: &Path,
    source_flavor: SourceFlavor,
    dest: &Path,
    vault: BTreeMap<String, String>,
) -> Result<WorldDecompiled, Error>
Expand description

harness.v1.world.decompile: write a world back as the source harness’s home.

source is the home the world was compiled from. It is re-compiled here for one reason: the io bookkeeping. That is what lets an artifact whose record has not changed be reused byte for byte, and what lets the UNI-22 gate refuse a live state.db instead of guessing at one.