2 releases
0.1.1 | Mar 29, 2023 |
---|---|
0.1.0 | Mar 26, 2023 |
#266 in Cargo plugins
11KB
205 lines
Limine Qemu Cargo Runner
Prerequisites
xorriso
for creating the isogit
for downloading limine
Installation
- Git version: run
install.sh
orcargo install --path .
- Release version:
cargo install cargo-qemu-runner
Usage
- Put
runner = "cargo qemu-runner"
in your.cargo/config.toml
's[target]
section - Specify these keys under it:
limine-branch
, the limine binary branch to cloneextra-files
, specifies extra files to copy to the resulting imagetest-success-exit-code
, qemu exit code which is considered successtest-args
, extra arguments which are used along withrun-command
for testsrun-args
, extra arguments which are used along withrun-command
run-command
, base command used to run qemu
- Now you can
cargo run
your kernel and it will automatically launch it in qemu
Todo
- Write a portable
xorriso
replacement in Rust - More configuration options?
- Make it possible to have
cargo-qemu-runner
as a dev-dependency instead of requiring installation if possible
Dependencies
~1–1.7MB
~38K SLoC