Why I built this
Rust is one of the most valuable languages of the AI era: its performance and stability let the apps I build reach users at a very high quality. But compile times and the size of target have troubled me for as long as I have used it.
In the AI era, disk use is a serious problem, and with many worktrees it became my biggest headache. I bought a 2 TB drive for it and that still was not enough, so it got in my way every day. I kept looking for tools and tried kache, mdx and others, but none of them really solved it.
I don't like being held back by limits, and I believed I could solve this. All of it runs on Cargo, so I went straight to Cargo itself and reshaped it around my own ideas and the way we build in the AI era.
It follows how I design products: convention over configuration, the idea from DHH. Developers should not have to think about this at all. Tools like kache and mdx ask for tedious setup; this asks for none. Install it, it replaces the cargo on your computer, and its defaults are tuned for the vast majority of cases.
These changes are aggressive. I don't expect upstream Cargo to accept them, and I don't have much energy to push for that. Upstream has to consider far more, such as support across every platform; I only consider development on macOS, Linux and Windows. So I have fewer worries, and I can go straight at the real problems I run into.
I now run it on four computers: two Linux, one macOS and one Windows. Windows has seen less use, but on Linux and macOS it has run for five days straight. I have not cleaned a target directory once, and my disk has not filled up again, as the screenshot below shows. For me the target disk problem is solved.

What remains is compile speed, which is still somewhat slower than languages like Go. That is a trade I accept: we wait a little, and users get the faster app. And this fork helps there too. Since nothing forces you to delete target anymore, builds no longer start from nothing, and what was compiled before is still there to reuse.
See what changes and the measurements.
My posts on X along the way
- Rust's most urgent problem is the disk space
targettakes. - Rust's compile speed and build output have become a serious bottleneck in the AI era.
- Still, these flaws are no reason to switch languages; that only brings new problems.
- Cleaning my Windows drive, I found zed and gpui-kit together took 800 GB.
- After reinstalling Omarchy on NVMe, a few cargo jobs pushed system load past 1000.
- What filled the I/O: 60 test binaries in one project, nearly 47 GB written per build.
- Tried LayerFS on NSH: a new worktree ran 22 tests in 0.669 s instead of 14.09 s.
- First release of huacnlee/cargo:
targetin one place, shared across worktrees, for less disk and faster builds. - Comparing stock cargo and huacnlee/cargo: the more worktrees, the bigger the difference.
- Second round of optimization: keeps
targetfrom growing without limit, for AI development across projects and worktrees; never deleted on my MacBook either. - Four days without cleaning
target. gpui-kit alone used to reach 100 GB in days; now every project is under control. - Day five: full of worktrees and automated AI development, with no disk problem at all. Nothing rebuilds from scratch, and the computer stays responsive.