Skip to content

Remove derivative dependency in favor of manual implementation#3763

Merged
rami3l merged 1 commit intomasterfrom
no-derivative
Apr 9, 2024
Merged

Remove derivative dependency in favor of manual implementation#3763
rami3l merged 1 commit intomasterfrom
no-derivative

Conversation

@djc
Copy link
Copy Markdown
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
@djc djc force-pushed the no-derivative branch from 16ab489 to 1c7fe6b Compare April 9, 2024 08:49
Copy link
Copy Markdown
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
@rami3l rami3l deleted the no-derivative branch April 9, 2024 09:48
@rbtcollins
Copy link
Copy Markdown
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