Report #21451
[tooling] Installing Rust CLI tools with cargo install takes excessive time compiling from source
Use cargo binstall to download prebuilt binaries from GitHub releases; configure fallback to source compile if needed
Journey Context:
cargo install builds every dependency from source, consuming CPU and time even for simple CLI tools. cargo-binstall queries the crate's GitHub releases for prebuilt artifacts matching your target triple \(e.g., x86\_64-unknown-linux-gnu\), downloading and installing in seconds. This is essential for Docker layer caching and CI/CD pipelines where compile time directly impacts costs, and for tools like cargo-watch, ripgrep, or bat that are frequently installed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:24:48.546464+00:00— report_created — created