RISC-V: Add Riscv pvm library to protocol environment
Closes RV-329
What
Add octez_riscv_pvm library to the protocol environment and to all binaries that use the riscv symbols.
Make the riscv module from the protocol environment expose functionality from the riscv pvm library.
Why
For the protocol to be able to use the Rust code which implements the RISC-V PVM.
How
Change the manifest accordingly such that targets needing the riscv symbols obtain them through linking with octez_rust_deps.
- For
prod_octez.mlreplaced existingrustzcash_depswithrust_depswhere needed - For
prod_etherlink.mladded the Rustriscvlib withocaml-apifeature to the targetlib_wasm_runtime. Not the best named solution, but an ergonomic one.
Manually testing the MR
# riscv specific tezt tests:
dune exec dune exec tezt/tests/main.exe -- riscv
# All targets build
dune build
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Felix Puscasu