Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/rust-multi-os-template. A template project for building Rust applications targeting multiple operating systems and architectures.
Something went wrong. Try again.
Rust 60%
Just 25%
C 15%
README.md
Rust Multi-OS Template #
A template project for building Rust applications targeting multiple operating systems and architectures using cargo-zigbuild.
I've confirmed that the outputs of these builds work on the respective platforms outlined below.
Setup #
brew install zig just
# OR
winget install zig.zig Casey.Just
# THEN
cargo install --locked cargo-zigbuild
Compiling #
# Linux x86_64
rustup target add x86_64-unknown-linux-gnu # ONCE
just build-linux-64
## OR
# Linux ARM64
rustup target add aarch64-unknown-linux-gnu # ONCE
just build-linux-arm
## OR
# Windows x86_64
rustup target add x86_64-pc-windows-gnu # ONCE
just build-windows-64
## OR
# Windows ARM64
rustup target add aarch64-pc-windows-gnullvm # ONCE
just build-windows-arm
## OR
# macOS Universal
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
just build-macos