
Show HN: QuickRust replaces cargo, sets up sccache, centralizes build cache
A drop-in replacement for the cargo command that makes Rust
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
QuickRust
A drop-in replacement for the cargo command that makes Rust builds faster, with nothing to configure. Every build goes into one centrally managed cache, which stays within its limits and gives space back on its own as the disk fills, so Rust builds don't fill up your disk. QuickRust brings its own toolchains, runs the toolchain's own Cargo and rustc, and records every build, so it can tell you where the time and the disk space went.
All downloads Your first build Commands All documentation
$ cargo build
OK Built: 12 compiled, 140 fresh, 37 restored from QuickRust's cache [4.21s]
WARN 23 warnings in app and util: unused_variables x17, dead_code x4, unused_imports x1, +1 more; qrust warnings shows them
and then, about that build
Answers qrust warnings # the warnings it counted, in full qrust analyze # everything about the latest build qrust analyze rebuilds # why each crate rebuilt qrust path # where the build went qrust upstream build # the toolchain's own Cargo, nothing added
Faster by default
Lighter debug information, rustc's parallel frontend, a shared artifact cache and early cut-off. The program you build behaves exactly the same.
No target/ in your projects: builds live in one central cache shared by every checkout. It keeps under a size limit and, as the disk fills, frees the least recently used first.
One status line, errors in full, warnings counted and kept, one line per outcome.
The critical path, why each crate rebuilt, duplicated dependencies, build scripts and macros, cache behaviour, disk use.
It downloads and manages Rust toolchains itself: rust-toolchain.toml and +toolchain choose, as with rustup.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。