Wasm PVM: extract Wasm_pvm_in_memory into standalone library
Close L2-832.
Previous: !20901 (merged)
What
Extract State_in_memory and Wasm_pvm_in_memory from lib_scoru_wasm into a new standalone octez-libs.scoru-wasm-in-memory library.
Why
This decouples the core WASM PVM library from tezos-context.memory, and removes the dependancies between WASM PVM and irmin.
How
- Move
State_in_memoryandWasm_pvm_in_memoryfromsrc/lib_scoru_wasm/wasm_pvm.mlinto a newsrc/lib_scoru_wasm_in_memory/library - Remove
octez_context_memoryfromoctez_scoru_wasmdeps (no longer needed) - Add
octez_context_memoryas direct dep tooctez_scoru_wasm_helpers(previously transitive) - Add the new library as dep to all consumers (
octez_protocol_environment, unit tests,benchmarks_proto,octez_sc_rollup) - Update all references from
Tezos_scoru_wasm.Wasm_pvm.Wasm_pvm_in_memorytoTezos_scoru_wasm_in_memory.Wasm_pvm_in_memory
Manually testing the MR
make -C manifest
dune build @check
Edited by Sylvain R.