Crate openvm_build

Source
Expand description

Build OpenVM guest code in Rust into RISC-V ELF with custom instructions.

Structs§

Functions§

  • Builds a package that targets the riscv guest into the specified target directory.
  • Creates a std::process::Command to execute the given cargo command in an environment suitable for targeting the zkvm guest.
  • When called from a build.rs, returns the current package being built.
  • Detect rust toolchain of given name
  • Finds the unique executable target in the given package and target directory, using the given target filter.
  • Returns the target executable directory given target_dir and profile.
  • Returns the given cargo Package from the metadata in the Cargo.toml manifest within the provided manifest_dir.
  • Determines and returns the build target directory from the Cargo manifest at the given manifest_path.
  • Returns all target ELF paths associated with the given guest crate.
  • Reads the value of the environment variable OPENVM_BUILD_DEBUG and returns true if it is set to 1.
  • Reads the value of the environment variable OPENVM_SKIP_BUILD and returns true if it is set to 1.