Skip to content

Add explicit serde feature#436

Merged
iliekturtles merged 1 commit into
iliekturtles:masterfrom
Aehmlo:serde-feature
Aug 30, 2023
Merged

Add explicit serde feature#436
iliekturtles merged 1 commit into
iliekturtles:masterfrom
Aehmlo:serde-feature

Conversation

@Aehmlo

@Aehmlo Aehmlo commented Aug 26, 2023

Copy link
Copy Markdown
Contributor

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.

@iliekturtles iliekturtles left a comment

Copy link
Copy Markdown
Owner

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.

Comment thread src/lib.rs
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

Aehmlo commented Aug 30, 2023

Copy link
Copy Markdown
Contributor Author

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
@iliekturtles

Copy link
Copy Markdown
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