Hacker News new | ask | show | jobs
by nextaccountic 12 days ago
waiting for the cargo lock is something else: cargo was not designed for multiple simultaneous entities developing in parallel

my take is, in the current state of the ecosystem, you should use https://github.com/kunobi-ninja/kache and make agente work on separate worktrees,each with their own target directory

usually separate target dirs means multi-gigabyte artifacts for each worktrees (and waiting for the same code to compile again). but not with kache, it builds only once and reduplicate files (with reflinks if your filesystem supports it)

there's also some projects for live reloading rust, and some specific tips about faster builds during iterative development (the most relevant being, use the mold linker)

1 comments

Thanks. I have been using CoW for this but will see how kache compares.