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

Fix building with no 'serde' feature #191

Closed

Conversation

willemolding
Copy link

@willemolding willemolding commented Feb 24, 2023

When trying to build the crate without the serde feature enabled e.g.

cargo check --no-default-features

It was failing because the field attributes were not gated by the feature, only the struct attributes.


This PR uses #[cfg_attr(feature = "serde", ...)] on the field attributes as well. This allows the project to build with --no-default-features again.

@willemolding
Copy link
Author

I just saw this is all included in #167. Feel free to close if it is easier to keep it all together.

@ralexstokes
Copy link
Owner

ralexstokes commented Oct 9, 2023

went ahead and just made serde required in #274
thanks for this though!

@ralexstokes ralexstokes closed this Oct 9, 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.

2 participants