Skip to content

Cargo Hyperlight

Cargo Hyperlight is a cargo subcommand for building Hyperlight guest binaries.

Write a Hyperlight guest binary in Rust and build it with cargo hyperlight build; no extra build configuration is needed. If your binary or any dependency has a build.rs script using cc and bindgen to compile C code and generate bindings, it will often work out of the box.

Your crate must have hyperlight-guest-bin as a transitive dependency. The command builds for the x86_64-hyperlight-none target by default and places the resulting guest binary under target/x86_64-hyperlight-none/.

Terminal window
# Install
cargo install cargo-hyperlight
# Build a guest binary
cd my-hyperlight-guest
cargo hyperlight build --release
GitHub API Docs