Skip to main content

Crate build_javm

Crate build_javm 

Source
Expand description

build.rs helper: cross-compile a guest crate and emit a JAVM Image blob.

The cross-compile is [nub_build::pvm2::build_elf]; the JAVM part is the last two lines — wrap the linked program in the cap shape and SSZ-encode it. Consumers include_bytes! the returned path.

Functions§

build
Build a JAVM Image blob from a guest crate, returning the path to the SSZ-encoded .pvm file in OUT_DIR.