Expand description
Compiling WASM artifacts ahead of their first launch.
mur install and mur precompile hand each payload to Precompiler::precompile, which
stores its compiled form through the same [CompiledForms] handle and the same
stage_root_component that stage_session uses, on an engine from the same
build_engine. A form written here therefore has the name, mode, sidecar and stamp a launch
would have given it, and launch cannot tell the two apart. This module reads and writes no file
itself.
The key is the sha256 of the payload bytes in hand, recomputed here, so a form is only ever
compiled from the root wasm of the payload it is named after, as the key contract in
compiled_forms requires.
Structs§
- Precompiler
- An engine and compiled-forms handle for storing the forms of installed artifacts.
Enums§
- Precompiled
- What
Precompiler::precompiledid with one payload. Serialised insnake_case, the outcomemur precompile --jsonreports.