3 ms·
There is an important distinction when it comes to stability. Stability for libraries is much more important that stability for devtools Stability mainly matte
by Manishearth 11y ago
There is an important distinction when it comes to stability. Stability for libraries is much more important that stability for devtools
Stability mainly matters when you release a library and it stops working on a newer compiler, breaking everyone downstream. That's a pain for the downstream users, because they need not necessarily understand your library internals, and the software they're building will be completely broken until you update it.
If an optional developer tool breaks, it's only you that's affected, not downstream users. You can wait for it to be fixed, no problem.
Rustfmt uses internal Rust APIs to parse and reason about the code. It could use something else (like syntex), but that would be more work.
- cm3 11y agoCan't rustfmt avoid dynamic linking?
- Manishearth 11y agoActually, I'm surprised it does link dynamically, since Rust binaries are typically statically linked. But yes, it should be able to avoid that.