Remove min_sqlite_version_3_7_16 feature

And associated bindgen
This commit is contained in:
gwenn
2022-08-22 18:38:59 +02:00
committed by Thom Chiovoloni
parent 6766d6a6cd
commit 2dd11143c9
5 changed files with 8 additions and 2315 deletions

View File

@@ -19,7 +19,6 @@ bundled-sqlcipher = ["bundled"]
bundled-sqlcipher-vendored-openssl = ["bundled-sqlcipher", "openssl-sys/vendored"]
buildtime_bindgen = ["bindgen", "pkg-config", "vcpkg"]
sqlcipher = []
min_sqlite_version_3_7_16 = ["pkg-config", "vcpkg"]
min_sqlite_version_3_14_0 = ["pkg-config", "vcpkg"]
# Bundle only the bindings file. Note that this does nothing if
# `buildtime_bindgen` is enabled.
@@ -39,7 +38,7 @@ wasm32-wasi-vfs = []
# Note that because `winsqlite3.dll` exports SQLite functions using a atypical
# ABI on 32-bit systems, this is currently unsupported on these. This may change
# in the future.
winsqlite3 = ["min_sqlite_version_3_7_16"]
winsqlite3 = []
[dependencies]
openssl-sys = { version = "0.9", optional = true }

File diff suppressed because it is too large Load Diff

View File

@@ -473,15 +473,7 @@ mod bindings {
use std::fs;
use std::path::Path;
static PREBUILT_BINDGEN_PATHS: &[&str] = &[
#[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",))
))]
"bindgen-bindings/bindgen_3.14.0.rs",
];
static PREBUILT_BINDGEN_PATHS: &[&str] = &["bindgen-bindings/bindgen_3.14.0.rs"];
pub fn write_to_out_dir(_header: HeaderLocation, out_path: &Path) {
let in_path = PREBUILT_BINDGEN_PATHS[PREBUILT_BINDGEN_PATHS.len() - 1];