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

Regenerate bindgen raze outputs #432

Merged
merged 2 commits into from
Oct 15, 2020
Merged

Regenerate bindgen raze outputs #432

merged 2 commits into from
Oct 15, 2020

Conversation

UebelAndre
Copy link
Collaborator

This regenerates the bindgen raze outputs using cargo-raze version 0.6.0.

Notably, this change changes the gen_workspace_prefix to rules_rust_bindgen so users of these rules also using raze don't run into conflicts in the targets they expected to be using vs the targets rules_rust is providing.

@google-cla google-cla bot added the cla: yes label Oct 14, 2020
@UebelAndre
Copy link
Collaborator Author

UebelAndre commented Oct 14, 2020

It's worth noting that this PR is intentionally not updating the version of bindgen as a way to first prove raze is still able to generate compatible outputs. I'd like to open another PR to update this though.

@UebelAndre
Copy link
Collaborator Author

@damienmg @mfarrugi this PR is ready for review 😃


[dependencies]
bindgen = "0.54.0"
libloading = "=0.5.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was being manually loaded in a56490d#diff-559b24b793c89733f91d4e6a1cdb1af7785f20e4748b4b40e59e68163016260cL33-L45

This seems like error initially since the block

[raze.crates.libloading.'0.5.2']
additional_deps = [":global_static"]
additional_build_file = "libloading-global-static.BUILD"

was trying to set dependencies for libloading.'0.5.2' when in fact this version was never being specified anywhere. Raze would give a warning about this and then the BUILD file would setup raze__libloading__0_5_0.

By adding this dependency to the Cargo.toml file, this allows raze to correctly pull and setup the dependency.

@mfarrugi mfarrugi merged commit 7dfb245 into bazelbuild:master Oct 15, 2020
@UebelAndre UebelAndre deleted the regen-bindgen branch October 15, 2020 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants