next.js
3e847dfe - Switch to cargo-binstall and pre-built sccache binaries (#92911)

Commit
27 days ago
Switch to cargo-binstall and pre-built sccache binaries (#92911) ## What - Use `cargo binstall` instead of `cargo install` for Rust tools in the Docker image - Download pre-built vercel/sccache from GitHub releases instead of compiling from git ## Why `cargo install` compiles from source which is slow on cache miss. `cargo binstall` downloads pre-built binaries in seconds. The vercel/sccache fork now publishes release binaries, eliminating the need for the `build-sccache` turbo task (~2-3 min compile). ## Changes **Dockerfile:** - Install cargo-binstall at pinned version (1.18.1), use it for cargo-rustflags - Remove sccache from Docker image (not needed inside container) **CI sccache:** - Download pre-built binary from `vercel/sccache` GitHub releases (~11MB) - Cache in `~/.cache/sccache-<version>` on self-hosted runners - Delete `scripts/build-sccache.js`, remove turbo task and package.json entry - `scripts/sccache-version` now contains just the release tag <!-- NEXT_JS_LLM_PR -->
Author
Parents
Loading