Change default minimal SQLite API version

From 3.6.8 to 3.14.0.
Use `old_sqlite` feature to keep 3.6.8 (or 3.7.16) as the minimal version.
Use `modern_sqlite` for SQLite API > 3.14.0.
Also remove old 3.6.23 and 3.7.7 bindings.
This commit is contained in:
gwenn
2022-08-21 11:20:04 +02:00
committed by Thom Chiovoloni
parent 5ea4c3b7d6
commit 6e740d0611
16 changed files with 71 additions and 4107 deletions

View File

@@ -474,13 +474,18 @@ mod bindings {
use std::path::Path;
static PREBUILT_BINDGEN_PATHS: &[&str] = &[
#[cfg(feature = "min_sqlite_version_3_6_8")]
"bindgen-bindings/bindgen_3.6.8.rs",
#[cfg(feature = "min_sqlite_version_3_6_23")]
"bindgen-bindings/bindgen_3.6.23.rs",
#[cfg(feature = "min_sqlite_version_3_7_7")]
"bindgen-bindings/bindgen_3.7.7.rs",
#[cfg(feature = "min_sqlite_version_3_7_16")]
"bindgen-bindings/bindgen_3.7.16.rs",
#[cfg(any(
feature = "min_sqlite_version_3_14_0",
not(any(
feature = "min_sqlite_version_3_7_16",
feature = "min_sqlite_version_3_6_8"
))
))]
"bindgen-bindings/bindgen_3.14.0.rs",
];
pub fn write_to_out_dir(_header: HeaderLocation, out_path: &Path) {