Skip to content

Commit acfa3a4

Browse files
authored
grpc-sys: downgrade bindgen (#452)
Due to rust-lang/cargo#5237, upgrading bindgen is not backward compatible. Signed-off-by: Jay Lee <BusyJayLee@gmail.com>
1 parent a5dd35f commit acfa3a4

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# 0.5.1 - 2020-03-20
1+
# grpcio-sys 0.5.2 - 2020-03-31
2+
3+
- Downgrade bindgen version to be backward compatible. (#452)
4+
5+
# 0.5.1 - 2020-03-30
26

37
- Clarify load balancing status (#445)
48
- Support unix domain socket (#446)

grpc-sys/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grpcio-sys"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
authors = ["The TiKV Project Developers"]
55
license = "Apache-2.0"
66
keywords = ["grpc", "bindings"]
@@ -70,4 +70,5 @@ cc = "1.0"
7070
cmake = "0.1.40"
7171
pkg-config = "0.3"
7272
walkdir = "2.2.9"
73-
bindgen = { version = "0.53.2", default-features = false, features = ["runtime"] }
73+
# Because of rust-lang/cargo#5237, bindgen should not be upgraded util a minor or major release.
74+
bindgen = { version = "0.51.0", default-features = false }

grpc-sys/build.rs

-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ fn bindgen_grpc(mut config: bindgen::Builder, file_path: &PathBuf) {
299299
.clang_arg("-std=c++11")
300300
.rustfmt_bindings(true)
301301
.impl_debug(true)
302-
.size_t_is_usize(true)
303302
.whitelist_function(r"\bgrpc_.*")
304303
.whitelist_function(r"\bgpr_.*")
305304
.whitelist_function(r"\bgrpcwrap_.*")

0 commit comments

Comments
 (0)