Expand description
Build OpenVM guest code in Rust into RISC-V ELF with custom instructions.
Structs§
- Guest
Options - Options defining how to embed a guest package.
- Target
Filter - A filter for selecting a target from a package.
Constants§
- RUSTC_
TARGET - The rustc compiler target.
Functions§
- build_
guest_ package - Builds a package that targets the riscv guest into the specified target directory.
- cargo_
command - Creates a std::process::Command to execute the given cargo command in an environment suitable for targeting the zkvm guest.
- current_
package - When called from a build.rs, returns the current package being built.
- detect_
toolchain - Detect rust toolchain of given name
- find_
unique_ executable - Finds the unique executable target in the given package and target directory, using the given target filter.
- get_
dir_ with_ profile - Returns the target executable directory given
target_dir
andprofile
. - get_
package - Returns the given cargo Package from the metadata in the Cargo.toml manifest
within the provided
manifest_dir
. - get_
target_ dir - Determines and returns the build target directory from the Cargo manifest at
the given
manifest_path
. - guest_
methods - Returns all target ELF paths associated with the given guest crate.
- is_
skip_ build - Reads the value of the environment variable
OPENVM_SKIP_BUILD
and returns true if it is set to 1.