Skip to content

Commit 0307a92

Browse files
author
Montana Low
committed
bump version, fix c++ stdlib bindgen (un)support
1 parent 60074af commit 0307a92

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

xgboost-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ readme = "README.md"
1313
libc = "0.2"
1414

1515
[build-dependencies]
16-
bindgen = "0.68"
16+
bindgen = "0.69"
1717
cmake = "0.1"
1818

1919
[features]

xgboost-sys/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
FFI bindings to [XGBoost](https://xgboost.readthedocs.io/), generated at compile
44
time with [bindgen](https://github.com/rust-lang-nursery/rust-bindgen).
55

6-
Currently uses XGBoost v0.81.
6+
Currently uses XGBoost v2.0.

xgboost-sys/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ fn main() {
5050

5151
let bindings = bindgen::Builder::default()
5252
.header("wrapper.h")
53+
.blocklist_item("std::.*")// stdlib is not well supported by bindgen
5354
.clang_args(&["-x", "c++", "-std=c++11"])
5455
.clang_arg(format!("-I{}", xgb_root.join("include").display()))
5556
.clang_arg(format!("-I{}", xgb_root.join("rabit/include").display()))

xgboost-sys/xgboost

Submodule xgboost updated 797 files

0 commit comments

Comments
 (0)