Skip to content

grpc-sys: Upgrade bindgen to the latest version #498

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

Merged
merged 2 commits into from
Dec 28, 2020

Conversation

heftig
Copy link
Contributor

@heftig heftig commented Nov 18, 2020

As requested in #452 (comment).

@heftig heftig force-pushed the bindgen-upgrade branch 4 times, most recently from ff24626 to 300d8f8 Compare November 18, 2020 17:00
@BusyJay
Copy link
Member

BusyJay commented Nov 19, 2020

Thanks @heftig!

@BusyJay
Copy link
Member

BusyJay commented Dec 17, 2020

I tried to compile and test the project on the new Apple M1, this patch seemed required to get it compile.

@@ -298,6 +298,8 @@ fn bindgen_grpc(mut config: bindgen::Builder, file_path: &PathBuf) {
.clang_arg("-std=c++11")
.rustfmt_bindings(true)
.impl_debug(true)
.size_t_is_usize(true)
.disable_header_comment()
Copy link
Member

Choose a reason for hiding this comment

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

I suggest to keep it so people may not try to edit the generated file by hand.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The header comment now contains the bindgen version number, making the output less stable.

Copy link
Member

Choose a reason for hiding this comment

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

Get it.

Signed-off-by: Jan Alexander Steffens (heftig) <[email protected]>
Signed-off-by: Jan Alexander Steffens (heftig) <[email protected]>
@BusyJay BusyJay merged commit 2944839 into tikv:master Dec 28, 2020
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