mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-29 21:52:12 +08:00
Update bindgen
dependency to the latest version
This also required adjusting the fixup inserting `SQLITE_DETERMINISTIC` into the bindings if it was missing. Now that `bindgen` uses the `quote` crate for code generation, instead of `syntex`, we can't rely on the output being formatted (it only is formatted if there is a usable `rustfmt` on the `$PATH`). Even better than this `contains` tweak would be switching to regexps or something. Despite that formatting hiccup, newer `bindgen` releases are more reliable due to many bug fixes, and also build in approximately half the time that older `bindgen` versions do.
This commit is contained in:
parent
d5bd7d9601
commit
ea7207b83d
@ -22,7 +22,7 @@ min_sqlite_version_3_7_4 = ["pkg-config", "vcpkg"]
|
|||||||
min_sqlite_version_3_7_16 = ["pkg-config", "vcpkg"]
|
min_sqlite_version_3_7_16 = ["pkg-config", "vcpkg"]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
bindgen = { version = "0.23", optional = true }
|
bindgen = { version = "0.31.3", optional = true }
|
||||||
pkg-config = { version = "0.3", optional = true }
|
pkg-config = { version = "0.3", optional = true }
|
||||||
gcc = { version = "0.3", optional = true }
|
gcc = { version = "0.3", optional = true }
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ mod build {
|
|||||||
// was added in SQLite 3.8.3, but oring it in in prior versions of SQLite is harmless. We
|
// was added in SQLite 3.8.3, but oring it in in prior versions of SQLite is harmless. We
|
||||||
// don't want to not build just because this flag is missing (e.g., if we're linking against
|
// don't want to not build just because this flag is missing (e.g., if we're linking against
|
||||||
// SQLite 3.7.x), so append the flag manually if it isn't present in bindgen's output.
|
// SQLite 3.7.x), so append the flag manually if it isn't present in bindgen's output.
|
||||||
if !output.contains("pub const SQLITE_DETERMINISTIC:") {
|
if !output.contains("pub const SQLITE_DETERMINISTIC") {
|
||||||
output.push_str("\npub const SQLITE_DETERMINISTIC: i32 = 2048;\n");
|
output.push_str("\npub const SQLITE_DETERMINISTIC: i32 = 2048;\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user