Merge branch 'feat/bitsquid'
* feat/bitsquid: Update bindgen
This commit is contained in:
commit
5d1a075742
2 changed files with 3 additions and 4 deletions
|
@ -15,6 +15,6 @@ links = "luajit"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
bindgen = "0.64.0"
|
bindgen = "0.69.4"
|
||||||
cc = "1"
|
cc = "1"
|
||||||
fs_extra = "1.1.0"
|
fs_extra = "1.1.0"
|
||||||
|
|
5
build.rs
5
build.rs
|
@ -192,11 +192,10 @@ fn main() {
|
||||||
.impl_debug(true)
|
.impl_debug(true)
|
||||||
.use_core()
|
.use_core()
|
||||||
.detect_include_paths(true)
|
.detect_include_paths(true)
|
||||||
// Make it pretty
|
.formatter(bindgen::Formatter::Rustfmt)
|
||||||
.rustfmt_bindings(true)
|
|
||||||
.sort_semantically(true)
|
.sort_semantically(true)
|
||||||
.merge_extern_blocks(true)
|
.merge_extern_blocks(true)
|
||||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks));
|
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()));
|
||||||
|
|
||||||
let bindings = if env::var("CARGO_CFG_WINDOWS").is_ok() {
|
let bindings = if env::var("CARGO_CFG_WINDOWS").is_ok() {
|
||||||
bindings
|
bindings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue