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:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user