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

Make serde feature not depend on serde_derive #65

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

ultrabear
Copy link
Contributor

This change makes ulid not depend on serde_derive with the serde feature enabled, taking compilation with the feature enabled from 5.98s to 2.37s (ryzen 2600).

Accommodations have been made for the places where the derive feature is used in doc tests (by adding serde_derive as a dev dependency), the drawback of this is serde_derive is compiled unconditionally under any modes that make use of dev-dependencies (optional dev dependencies is not a thing, but if someone who knows more can figure it out that would be appreciated), but I believe the benefit of not compiling serde_derive for normal users of the crate (when they don't need it to run the serde related library code) is worthwhile.

This change has been made possible by the implicit coupling of serde and serde_derive versions (without using the "derive" feature) that was introduced in serde 1.0.186

@dylanhart
Copy link
Owner

Look good! Thank you for the contribution.

@dylanhart dylanhart merged commit b0079dd into dylanhart:master Aug 29, 2023
1 check passed
@dylanhart
Copy link
Owner

published as version v1.0.1

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