We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9b8f2 commit 1ac75a8Copy full SHA for 1ac75a8
build.rs_ renamed to build.rs
@@ -12,12 +12,9 @@ fn main() {
12
// to bindgen, and lets you build up options for
13
// the resulting bindings.
14
let bindings = bindgen::Builder::default()
15
- // The input header we would like to generate
16
- // bindings for.
17
.header("wrapper.h")
18
- // Finish the builder and generate the bindings.
+ .hide_type("max_align_t")
19
.generate()
20
- // Unwrap the Result and panic on failure.
21
.expect("Unable to generate bindings");
22
23
// Write the bindings to the $OUT_DIR/bindings.rs file.
src/lib.rs
@@ -7,8 +7,7 @@
7
#![allow(non_camel_case_types)]
8
#![allow(non_snake_case)]
9
10
-
11
-include!("bindings.rs");
+include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
#[macro_use]
extern crate lazy_static;
0 commit comments