Skip to main content

store

Function store 

Source
pub fn store(
    key: u64,
    bytecode: &[u8],
    module_name: &str,
    source_map_json: Option<&str>,
    aux: Option<&str>,
    inputs: &[PathBuf],
)
Expand description

Persist a freshly compiled key -> bytecode entry. Best-effort: any IO failure is swallowed (the cache is an optimization, never a correctness dependency). Writes are atomic via temp-file + rename so a concurrent or crashed writer never exposes a torn manifest.