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: remove dependency on derivative #294

Merged
merged 4 commits into from
Jan 3, 2025

Conversation

flaneur2020
Copy link
Contributor

@flaneur2020 flaneur2020 commented Jan 2, 2025

Motivation

fixes #293

Solution

the derivative crate has been marked as unmaintained by a GitHub bot, and all repositories depending on pilota have received a warning issue regarding this.

this PR removes the dependency on derivative by using the #[derive(Default)] attribute from the Rust stdlib for unit enum variants. and manually generated impl Default for enums with non-unit variants (e.g., Ok(String)).

@CLAassistant
Copy link

CLAassistant commented Jan 2, 2025

CLA assistant check
All committers have signed the CLA.

@flaneur2020 flaneur2020 changed the title Chore/remove derivative fix: remove dependency on derivative Jan 2, 2025
@flaneur2020 flaneur2020 marked this pull request as ready for review January 2, 2025 04:31
@flaneur2020 flaneur2020 requested review from a team as code owners January 2, 2025 04:31
@flaneur2020 flaneur2020 force-pushed the chore/remove-derivative branch from 6f47efa to d5255ab Compare January 2, 2025 04:32
@PureWhiteWu
Copy link
Member

Thanks very much for your contribution!
LGTM, PTAL @Millione

PureWhiteWu
PureWhiteWu previously approved these changes Jan 2, 2025
Copy link
Member

@Millione Millione left a comment

Choose a reason for hiding this comment

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

Great work, a little tweaking maybe needed.

pilota-build/src/plugin/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@Millione Millione 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 your contribution!

@Millione Millione merged commit 946bde4 into cloudwego:main Jan 3, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

derivative is unmaintained; consider using an alternative
4 participants