This isn’t the way to speed up Rust compile times

Recently, the popular Rust library serde made a decision to use a precompiled version of a procedural macro instead of compiling it on the fly, in an attempt to speed up compile times. While this decision has its advantages, such as faster runtime and improved developer experience, it also comes with downsides. One major downside is the reliance on a procedural macro, which can potentially cause build times to slow down, as more of the ecosystem uses it. Additionally, using precompiled binaries raises concerns about security and reproducibility. While this change may have limited impact on build times, it raises questions about the future of the Rust ecosystem and the tradeoffs involved.

https://xeiaso.net/blog/serde-precompiled-stupid

To top