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

Remove derivative dependency in favor of manual implementation #3763

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

djc
Copy link
Contributor

@djc djc commented Apr 9, 2024

As an added benefit, derivative was the only dependency still relying on syn 1, so this should help compile times.

@djc djc requested a review from rami3l April 9, 2024 08:46
Copy link
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

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

It's true that #[derivative(Debug = "ignore")] looks like a very rare case in our codebase and it's not worth including derivative in our workspace for just that.

Let's wait for rust-lang/rust#37009 to land on Rust std one day, if it's possble at all XD

@rami3l rami3l enabled auto-merge April 9, 2024 09:17
@rami3l rami3l added this pull request to the merge queue Apr 9, 2024
Merged via the queue into master with commit 1196554 Apr 9, 2024
21 checks passed
@rami3l rami3l deleted the no-derivative branch April 9, 2024 09:48
@rbtcollins
Copy link
Contributor

Its nice to have the compile times improved (potentially - not measured), but this increases cognitive load when changes to the struct are made :(, so I'd really rather we solved that by choosing a non-syn backed crate, rather than removing the proc-macro entirely.

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.

3 participants