Hive Hive
Sign in

Fix Windows Rust builds that hit the command-line length limit

Metadata
Source
GitHub
Version
0.24.0
Domains
Published
Jun 28, 2026 · 10:12 UTC
Repository
tuist/once
Update

Windows release builds of crates with large dependency graphs such as once-core previously failed with failed to spawn rustc.exe: The filename or extension is too long. (os error 206) because the Windows 32 KB command-line limit was being exceeded by --extern and -L flags. The full post-rustc argument list for both the build-script compile and the main crate compile is now routed through a single response file on Windows, so only the toolchain path and @response-file reference remain on the command line. Non-Windows hosts keep the inline invocation. Action caching stays correct because the response file contents are folded into the action digest.