The owner asked for a nightly toolchain with rustc's parallel front end on. rust-toolchain.toml pins nightly-2026-11-03 (rustc 1.101.0-nightly 1c3a65069), the one metal2vulkan's builds moved to the same day, so the host runs one rustc, clippy and rustfmt for both. .cargo/config.toml turns on Cargo's profile rustflags and gives dev and release `-Zthreads=0`, one front-end thread per core; test, debugging and checked inherit it, and it adds to RUSTFLAGS rather than giving way to it (checked with `cargo rustc -v`). What the nightly asks of the tree, no behaviour changed: - rustfmt now formats inside the death tests' macro bodies; - `fetch_update` is deprecated as `try_update`, the same call; - clippy's redundant-closure, needless-range-loop and NonZero-divisor lints; - the fuzz harness declares `write` with C's types, which the new lint on runtime symbols checks; - the three Vulkan tests that unwrap a command buffer take the library's recursion limit of 256: rustc now warns, as a coming hard error, that the Send and Sync walk of their result overflows the default 128.
18 lines
1.4 KiB
TOML
18 lines
1.4 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-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"]
|