frd reads your machine and project, then walks you through build-speed and
target/-shrinking changes one at a time. Accept or skip each; it changes nothing
without your approval.
Prebuilt binary (no compile), via cargo-binstall:
cargo binstall frdFrom source:
cargo install frdOr download a binary directly: each GitHub release ships macOS (Apple Silicon + Intel), Linux (x86_64 + arm64), and Windows (x86_64) builds.
Run it inside a Cargo project (or anywhere, for the global suggestions):
frd # report, then the interactive wizard
frd report # print the system and project report, then exit
frd doctor # audit which optimizations are applied; exit non-zero if any are pending
frd --dry-run # show every change as a diff, write and run nothing
frd --yes # accept every applicable suggestion without prompting
frd --root DIR # operate on DIR instead of the current directoryEach suggestion is a card: why it helps, the exact diff, and a color for what it optimizes (disk, speed, or both). Choose Accept, Skip, or Quit. Installs and sweeps stream their output, then fold to one line when they finish.
Every edit preserves your comments and ordering, and copies the file to a timestamped
.frd-bak-* backup first.
~/.cargo/config.toml— a sharedtarget-dirso repos and git worktrees stop duplicatingtarget/; on nightly,no-embed-metadata; routerustcthroughsccacheonce it is installed../Cargo.tomlprofiles —devdebug asline-tables-only, optimized dependencies, a disk-lightfast-buildprofile,releasestrip = true, and on macOSsplit-debuginfo = "unpacked"../.cargo/config.toml— on nightly, parallel-frontend and share-generics rustflags, kept project-local so they do not override a repo's own flags.- Tools — install
sccache,cargo-sweep, andcargo-machete(preferringcargo-binstallwhen present), and sweep stale build artifacts.
MIT. See LICENSE.