only run bindgen on ImPlot... names

not sure why bindgen switches to i32 everywhere
moved imgui dependency up one step as this seems where its actually used
This commit is contained in:
Benedikt Mandelkow 2020-10-26 18:54:48 +01:00 committed by 4bb4
parent cdc7e273c0
commit 6bdfd76d51
11 changed files with 31 additions and 8241 deletions

View file

@ -4,9 +4,6 @@ version = "0.1.0"
authors = ["Sandro Merkli"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bindgen = "0.53.1"
bindgen = "0.55.1"
imgui-sys = { version = "0.5.0" }
imgui = { version = "0.5.0" }

View file

@ -1,6 +1,4 @@
use std::env;
use std::io::Write;
use std::path::PathBuf;
fn main() {
// We just forward the DEP_IMGUI_THIRD_PARTY variable here because the

View file

@ -34,6 +34,8 @@ fn main() {
)
.parse_callbacks(Box::new(CargoCallbacks))
.clang_arg("-DCIMGUI_DEFINE_ENUMS_AND_STRUCTS=1")
.whitelist_function("ImPlot.*")
.whitelist_type("ImPlot.*")
.generate()
.expect("Unable to generate bindings");