Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I.dont think so, and I'm convinced that this could be done automatically as part of rustc, with the negative side effect of small changes that affect the splitting behaviour causing wild compilation time changes that are hard to debug.


That's what heuristics are for. Just because re-splitting could improve incremental compilation doesn't mean it should happen now.

---

That said, a one off tool is way lower friction than modifying rustc / building something everyone is subject to.

I think I'd personally prefer it to behave like a linter.


I think that listing behaviour could eventually be landed on rustc itself, but as it happens I am working on a listing tool, so I might just prototype it there first!

The benefit of telling users "you can split this section off to its own crate" is that the "break" of that can't ever be silent.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: