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

Provide central way to ignore all derive(Serialize, Deserialize) attributes #289

Closed
dtolnay opened this issue Apr 18, 2016 · 1 comment
Closed
Labels

Comments

@dtolnay
Copy link
Member

dtolnay commented Apr 18, 2016

See the discussion at #288 (comment).

Instead of requiring #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] on every type, there should be a central way to disable all of the derive(Serialize, Deserialize) attributes in a crate and eliminate the slow-to-compile dependency. This could take the form of a noop feature for serde_macros and/or serde_codegen, or a separate crate serde_noop.

@dtolnay
Copy link
Member Author

dtolnay commented Feb 17, 2017

Compile time of serde_derive is less of an issue now and cfg_attr is an adequate solution when that is really what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant