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_memory and Wasm_pvm_in_memory from src/lib_scoru_wasm/wasm_pvm.ml into a new src/lib_scoru_wasm_in_memory/ library
  • Remove octez_context_memory from octez_scoru_wasm deps (no longer needed)
  • Add octez_context_memory as direct dep to octez_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_memory to Tezos_scoru_wasm_in_memory.Wasm_pvm_in_memory

Manually testing the MR

make -C manifest
dune build @check
Edited by Sylvain R.

Merge request reports

Loading