The operating system has been converted to a Rust workspace structure.
rust_src/mac_types: Common Macintosh types (OSErr, Rect, etc.) rewritten in Rust.rust_src/os: Core OS subsystems (MemoryMgr, StartMgr, etc.).rust_src/kernel: The kernel entry point and main loop (MiniFinder equivalent).
- Rust Nightly is REQUIRED to build for the
m68k-unknown-none-elftarget because the standard library (core) is not pre-compiled for this target. rust-srccomponent.
-
Install the nightly toolchain and the rust-src component:
rustup toolchain install nightly rustup component add rust-src --toolchain nightly
-
Build using cargo with the nightly toolchain and
build-std:cargo +nightly build --release -Z build-std=core,alloc
Note: The
.cargo/config.tomlsets the default target tom68k-unknown-none-elf. You can uncomment the[unstable]section in that file if you are always using nightly.
If you do not have the nightly toolchain or just want to check the syntax:
cargo check --target x86_64-unknown-linux-gnu