pub fn core_modules(
engine: &Engine,
wasm: &[u8],
) -> Result<Vec<(Checksum, Vec<u8>)>>Available on crate features
rr and runtime only.Expand description
Returns the core modules that engine compiles from wasm, with their
checksums. wasm is a core module, in the binary or (with the wat
feature) text format, which is returned as is.
A trace refers to the modules it instantiates by these checksums, so this can be used to find or package the bytecode that replaying it requires.