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

Add explicit serde feature #436

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Conversation

Aehmlo
Copy link
Contributor

@Aehmlo Aehmlo commented Aug 26, 2023

This revision adds an explicit Cargo feature named serde. This feature is almost identical to the old use_serde feature, but uses features of Cargo's new feature resolver to automatically enable serde features for num-* crates as appropriate. The use_serde feature is now a (deprecated) alias for this new serde feature.

Very few changes were required, since uom was already using the (then-implicit) serde feature to begin with. I was unable to find an elegant way to warn users specifying use_serde to switch to the new feature.

This closes #216.

Copy link
Owner

@iliekturtles iliekturtles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this on. One minor documentation change requested below.

This revision adds an explicit Cargo feature named serde. This feature is
analogous to the old use_serde feature, but uses features of Cargo's new
feature resolver to automatically enable serde features for num-* crates as
appropriate. The use_serde feature is now a (deprecated) alias for this new
serde feature.
@Aehmlo
Copy link
Contributor Author

Aehmlo commented Aug 30, 2023

Added comments to Cargo.toml and README.md and squashed into the prior commit.

@iliekturtles iliekturtles merged commit 629f385 into iliekturtles:master Aug 30, 2023
14 checks passed
@iliekturtles
Copy link
Owner

Merged! Thanks again for the PR.

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.

Rename use_serde feature?
2 participants