Skip to main content

Crate nub_build

Crate nub_build 

Source
Expand description

build.rs helpers for cross-compiling nub guest crates.

Two unrelated guest worlds live here, because both are nub’s cross-compile recipes and neither belongs to a personality:

  • pvm2 — the PVM2 guest: RV64EMC programs that run inside the engine (interpreter or JIT). Custom target JSON, linked by nub-linker into a nub_program::ProgramBlob.
  • arch_x86 — the bare-metal x86-64 guest kernel: the ring-0 substrate that hosts the engine inside a KVM/Hyperlight sandbox. Stable x86_64-unknown-none target, no -Zbuild-std.

build is re-exported at the root for the x86 guest, which is the older and more frequently called of the two.

Re-exports§

pub use arch_x86::build;

Modules§

arch_x86
Cross-compile a nub bare-metal Arch guest-kernel crate for a stable bare-metal target (today: x86_64-unknown-none) and return the path to the resulting ELF.
pvm2
build.rs helper: cross-compile a guest crate for the PVM2 target and link it into a runnable program.