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

Bump bindgen for version 0.2.x of crate #82

Merged
merged 6 commits into from
Feb 10, 2022

Conversation

ionut-arm
Copy link
Member

I've created a separate branch for the 0.2.x versions of the crate, with the hope of using that for Parsec until we can update to 0.3.0. A new release is needed on our side specifically for an update of the bindgen dependency, which this PR addresses. However, I plan to also update the committed bindings, hence this PR being a draft. This plan includes a bash script for regenerating those bindings when needed.

cc. @vkkoskie

@ionut-arm ionut-arm added the code health Issues concerning overall code quality, safety and best practice label Feb 4, 2022
@ionut-arm ionut-arm self-assigned this Feb 4, 2022
A new script is added to aid the regeneration of bindings whenever the
bindgen version is changed, along with the bindings produced with
bindgen v0.59.2.

Signed-off-by: Ionut Mihalcea <[email protected]>
@ionut-arm ionut-arm marked this pull request as ready for review February 8, 2022 12:55
@ionut-arm
Copy link
Member Author

I'll port this to the main branch as well.

Copy link
Collaborator

@wiktor-k wiktor-k left a comment

Choose a reason for hiding this comment

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

Looks good 👍 also - nice to see some improvements that the new bindings bring e.g. #[derive(Debug)] for generated structs.

Signed-off-by: Ionut Mihalcea <[email protected]>
Update the script to make it shell-compliant. Update the MacOS Darwin bindings,
and change bindings OS name from `unknown` to `apple`. Add this target to the
list supported by the script.
Update the `build.rs` file to use correct `bindgen` methods.

Co-authored-by: Ionut Mihalcea <[email protected]>
Co-authored-by: Anton Antonov <[email protected]>

Signed-off-by: Ionut Mihalcea <[email protected]>
@ionut-arm
Copy link
Member Author

I've updated the script to include the MacOS bindings as well, for some reason we had them down as x86_64-unknown-darwin, when the target is actually x86_64-apple-darwin (at least, that's the case now). I've also renamed the bindings file. @jeamland - just a FYI that this has happened!

@ionut-arm ionut-arm merged commit 67b0199 into parallaxsecond:cryptoki-0.2.x Feb 10, 2022
@ionut-arm ionut-arm deleted the bump-bindgen branch February 10, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code health Issues concerning overall code quality, safety and best practice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants