Files
reims-vgpu/rust-toolchain.toml
T
Anees Iqbal 3a6a25885c ✅ Clippy-check the Windows target in cargo xtask check
Every library crate builds for x86_64-pc-windows-gnullvm since 11-15, but
nothing in the check saw Windows, so the next Unix-only call in shared code
would break the Windows build unnoticed. The check now runs clippy for that
target on the Mac and on Linux, as the Mac already does for Linux: SDL left
unbuilt, nothing linked. The video crate's own tests and examples stay out,
since their CPU-time clock (codec/fuzz_support.rs) is clock_gettime's; its
library is still checked as reims-vgpu's dependency.

rust-toolchain.toml lists the target, so rustup installs it on every host,
and a test keeps the check's cross targets in that list.
2026-11-15 09:07:15 -08:00

25 lines
1.6 KiB
TOML

# A dated nightly, for rustc's parallel front end (`-Zthreads`, set in `.cargo/config.toml` through
# Cargo's profile rustflags), the toolchain metal2vulkan's builds use too. The date is fixed so
# every host runs one rustc, clippy and rustfmt; moving it is a deliberate step, with a full check.
# The crates' `rust-version` (Cargo.toml) stays the stable floor clippy's `incompatible_msrv` checks
# the standard library's items against. D32: the Metal platform is aarch64-apple-darwin alone; the
# Vulkan platform builds for aarch64 and x86-64, on macOS and Linux, and x86_64-unknown-linux-gnu is
# what ships on Linux (built there, type-checked from the Mac by `cargo xtask check`).
# x86_64-pc-windows-gnullvm is the Windows the library is being brought up on (built there under
# MSYS2 CLANG64, type-checked from the Mac and Linux by `cargo xtask check`).
# x86_64-apple-darwin runs core's tests under Rosetta, with the x86-64 guest's pages and
# instructions, on a Mac that has Rosetta (check skips them on one without).
# No Rust binary is arm64e: rustc's arm64e-apple-darwin target has no pointer authentication, and
# its binaries, a hello world among them, crash in dyld's `_tlv_get_addr` before `main` (measured
# 2026-09-25 with nightly-2026-09-24 on macOS 26.7). An arm64 binary still links and calls arm64e
# code, as it calls the system's frameworks, and arm64e code calls its callbacks.
[toolchain]
channel = "nightly-2026-11-03"
components = ["rustfmt", "clippy"]
targets = [
"aarch64-apple-darwin",
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-gnullvm",
]