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

Introduce DeriveInfo #2355

Merged
merged 3 commits into from Nov 21, 2022
Merged

Introduce DeriveInfo #2355

merged 3 commits into from Nov 21, 2022

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented Nov 18, 2022

This PR introduces a new non-exhaustive struct called DeriveInfo to be used as the sole argument of ParseCallbacks::add_derives with the purpose of being able to extend the information passed to this method in a backwards-compatible manner, meaning that adding new fields to DeriveInfo won't be a breaking change when releasing a new version.

Some candidates to new fields have been requested already:

@pvdrz pvdrz requested a review from emilio November 18, 2022 20:35
bindgen/callbacks.rs Outdated Show resolved Hide resolved
@pvdrz pvdrz merged commit 34f0bac into rust-lang:master Nov 21, 2022
@pvdrz pvdrz deleted the derive-info branch November 21, 2022 15:38
LoganBarnett pushed a commit to LoganBarnett/rust-bindgen that referenced this pull request Dec 2, 2023
This PR introduces a new non-exhaustive `struct` called `DeriveInfo` to be used as the sole argument of `ParseCallbacks::add_derives` with the purpose of being able to extend the information passed to this method in a backwards-compatible manner, meaning that adding new fields to `DeriveInfo` won't be a breaking change when releasing a new version.
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.

None yet

2 participants