Writing an OS in Rust. RustでOS自作入門。
For development in vscode, follow the steps below.
- Remove the following line from
.cargo/config
.
[unstable]
build-std = ["core", "compiler_builtins", "alloc"]
- Run
cargo install cargo-xbuild && cargo xbuild
. This will generatetarget/sysroot
dir that is needed for rls for vscode. - Revert changes you made to
.cargo/config
.
The following posts and books gave me great help to go through this project.
- Writing an OS in Rust
- enabling to run Rust code on the bare metal without an underlying operating system
- creating a bootable disk image
- enabling unit and integration testing
- 30日でできる!OS自作入門
- all chapters after Chapter 3
- 「30日でできる!OS自作入門」をRustで。 - TSUGULOG
- filling the gap between the post "Writing an OS in Rust" and the book "30日でできる!OS自作入門"
- x86_64 crate
- supporting x86_64 specific instructions, registers, and structures