Install Rust nightly and required components:
rustup toolchain install nightly
rustup component add rust-src llvm-tools-preview --toolchain nightly
cargo install bootimage
rustup component add rustfmt clippy --toolchain nightlyBuild the kernel for the custom target:
cargo build --target x86_64-zero.jsoncargo bootimageThe generated image will be located at:
target/x86_64-zero/debug/bootimage-zero.bin
qemu-system-x86_64 \
-drive format=raw,file=target/x86_64-zero/debug/bootimage-zero.binCheck the project:
cargo check \
-Zbuild-std=core,alloc,compiler_builtins \
-Zbuild-std-features=compiler-builtins-memRun tests:
cargo test