Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using serde_derive crate directly rather than serde derive feature #49

Closed
wants to merge 1 commit into from

Conversation

calbaker
Copy link
Collaborator

Apparently, serde is now shipping the serde_derive::{Deserialize, Serialize} attribute-style proc macros as precompiled binaries.
serde-rs/serde#2584
https://www.bleepingcomputer.com/news/security/rust-devs-push-back-as-serde-project-ships-precompiled-binaries/

dtolnay says he did it to reduce compile times which had gotten quite bad because the derive feature forced certain compilation steps to be sequential. Apparently, a decent workaround is to use the serde_derive crate directly as a dependency, and it apparently keeps compile times similar to what they are with the pre-compiled binary.

@calbaker calbaker closed this Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant