From 992378ab7f4805af36e45f40421512f45efead21 Mon Sep 17 00:00:00 2001 From: Simon Buttgereit Date: Thu, 26 Sep 2024 16:41:34 +0200 Subject: [PATCH 1/4] update bindgen --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6c3b4ad..0619fb6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,5 @@ paste = "1.0" # intrusive-collections = "0.9" [build-dependencies] -bindgen = "0.59.2" +bindgen = "0.70.1" pkg-config = "0.3" From 4933487d3c273cb9060190e972ae1bd01e7e941f Mon Sep 17 00:00:00 2001 From: Simon Buttgereit Date: Fri, 27 Sep 2024 07:46:00 +0200 Subject: [PATCH 2/4] update depricated call --- build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 9ecc0ef..fb15b07 100644 --- a/build.rs +++ b/build.rs @@ -1,5 +1,6 @@ use std::env; use std::path::Path; +use bindgen::Formatter; fn link_rdma_core(lib_name: &str, pkg_name: &str, version: &str, include_paths: &mut Vec) { let result: _ = pkg_config::Config::new() @@ -148,7 +149,7 @@ fn main() { //.generate_inline_functions(true) //.default_macro_constant_type(bindgen::MacroTypeVariation::Unsigned) .prepend_enum_name(false) - .rustfmt_bindings(true) + .formatter(Formatter::Rustfmt) .size_t_is_usize(true) .disable_untagged_union() .generate() From fd211483478e1463fce908cc82f0038ad5653937 Mon Sep 17 00:00:00 2001 From: Simon Buttgereit Date: Fri, 27 Sep 2024 07:48:06 +0200 Subject: [PATCH 3/4] move includes --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index fb15b07..20b5165 100644 --- a/build.rs +++ b/build.rs @@ -1,6 +1,6 @@ +use bindgen::Formatter; use std::env; use std::path::Path; -use bindgen::Formatter; fn link_rdma_core(lib_name: &str, pkg_name: &str, version: &str, include_paths: &mut Vec) { let result: _ = pkg_config::Config::new() From 65b4098b958fc0e900d929929e53628c2a9dd69b Mon Sep 17 00:00:00 2001 From: Simon Buttgereit Date: Fri, 27 Sep 2024 08:00:31 +0200 Subject: [PATCH 4/4] update memoffset --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0619fb6..6bf8430 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/datenlord/rdma-sys" [dependencies] libc = "0.2" -memoffset = "0.6" +memoffset = "0.9" paste = "1.0" # intrusive-collections = "0.9"