A runner for EFI executables using QEMU and OVMF.
You must have QEMU installed, as it is used for emulating a UEFI.
To install efi-runner
, you must use cargo install
on the nightly channel with the bindeps
unstable feature enabled:
cargo +nightly install efi-runner -Z bindeps
Create a .cargo/config.toml
file in your project if it doesn't already exist and add the following:
[target.x86_64-unknown-uefi]
runner = "efi-runner"
After that, you're good to go! efi-runner
is configured as your UEFI target runner and whenever you run your project, for example, like so:
cargo run
a QEMU window will open with your program loaded in it.