Use the rust-bindgen crate properly

Using the changes from @gadomski along with some additional work, to get the
generated bindings working again. Works on macOS and FreeBSD 11. A couple of
hacks are needed for FreeBSD, but nothing too serious.

Changed to use the libc prefix, and changed to use the generated enums.

Fixes #22, #15, and #14

cargo test passes
This commit is contained in:
Nathan Fiedler
2017-04-08 16:03:58 -07:00
parent 4507d07c9c
commit e7054d3e35
14 changed files with 152 additions and 8244 deletions

View File

@ -11,8 +11,8 @@ keywords = ["magickwand", "imagemagick"]
build = "build.rs"
[dependencies]
libc = "0.2"
libc = ">=0.2"
[build-dependencies]
bindgen = "0.20"
pkg-config = "0.3"
bindgen = "0.22.1"
pkg-config = "0.3.9"