Serde: Shipping Precompiled Binaries and the Implications for Developers
The article discusses the recent change in Serde, a popular Rust serialization library, where precompiled binaries are now being shipped with no way to opt out. This change has raised concerns among developers, especially those who cannot redistribute precompiled binaries. The article highlights a GitHub issue where a developer working on packaging Serde for Fedora Linux expresses their concerns and asks for clarification on how the precompiled binary is produced and if it's possible to recreate it. The author of Serde clarifies that the fallback solution is to patch the library and include the non-precompiled code. However, they mention that it's not possible to adapt the Serde Derive crate to fall back to the non-precompiled code path during the build process. The article concludes by mentioning the potential for future improvements in compile-time savings. This change in Serde has important implications for developers who rely on the library and need to consider the distribution of precompiled binaries in their projects.