Use new rust-bindgen crate for faster builds

Rather than cloning the bindgen repository and building from source, use
the packaged crate. The result is the rebuilds are much, much faster.
Also, had to make numerous changes for the new version of bindgen.

cargo test passes
This commit is contained in:
Nathan Fiedler
2016-08-03 20:36:52 -07:00
parent 2c94dab05a
commit eec7998d25
6 changed files with 82 additions and 51 deletions

View File

@ -34,7 +34,7 @@ extern crate libc;
mod wand;
mod conversions;
pub mod filters;
mod bindings { include!(concat!(env!("OUT_DIR"), "/bindings.rs")); }
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
pub use wand::*;