nub_build/lib.rs
1//! build.rs helpers for cross-compiling nub guest crates.
2//!
3//! Two unrelated guest worlds live here, because both are nub's
4//! cross-compile recipes and neither belongs to a personality:
5//!
6//! - [`pvm2`] — the **PVM2 guest**: RV64EMC programs that run *inside*
7//! the engine (interpreter or JIT). Custom target JSON, linked by
8//! `nub-linker` into a `nub_program::ProgramBlob`.
9//! - [`arch_x86`] — the **bare-metal x86-64 guest kernel**: the ring-0
10//! substrate that *hosts* the engine inside a KVM/Hyperlight sandbox.
11//! Stable `x86_64-unknown-none` target, no `-Zbuild-std`.
12//!
13//! [`build`] is re-exported at the root for the x86 guest, which is the
14//! older and more frequently called of the two.
15
16pub mod arch_x86;
17pub mod pvm2;
18
19pub use arch_x86::build;