Update build process to use prebuilt bindings.

Adds buildtime_bindgen feature to run bindgen dynamically.
This commit is contained in:
John Gallagher
2017-03-03 14:57:40 -05:00
parent 9510e25ef3
commit 06383c65cb
3 changed files with 182 additions and 118 deletions

View File

@@ -11,9 +11,16 @@ keywords = ["sqlite", "database", "ffi"]
categories = ["database", "external-ffi-bindings"]
[features]
bundled = []
default = ["min_sqlite_version_3_6_8"]
bundled = ["gcc"]
buildtime_bindgen = ["bindgen", "pkg-config"]
min_sqlite_version_3_6_8 = ["pkg-config"]
min_sqlite_version_3_6_11 = ["pkg-config"]
min_sqlite_version_3_6_23 = ["pkg-config"]
min_sqlite_version_3_7_3 = ["pkg-config"]
min_sqlite_version_3_7_4 = ["pkg-config"]
[build-dependencies]
bindgen = "0.21"
pkg-config = "0.3"
gcc = "0.3"
bindgen = { version = "0.21", optional = true }
pkg-config = { version = "0.3", optional = true }
gcc = { version = "0.3", optional = true }