Use runtime feature for bindgen

https://github.com/rust-lang/rust-bindgen/issues/1694#issuecomment-565625756
> Are you using default-features = false? I think you need to change to
features = ["dynamic"] if so so that clang is runtime-detected.
Otherwise it needs a relatively-new libclang version.
This commit is contained in:
gwenn 2019-12-14 08:18:21 +01:00
parent a0551496d8
commit cade470f15

View File

@ -29,7 +29,7 @@ preupdate_hook = []
session = ["preupdate_hook"]
[build-dependencies]
bindgen = { version = "0.52", optional = true, default-features = false }
bindgen = { version = "0.52", optional = true, default-features = false, features = ["runtime"] }
pkg-config = { version = "0.3", optional = true }
cc = { version = "1.0", optional = true }