From 6b6791156195cb297f96f25137bf0f94bcdf9113 Mon Sep 17 00:00:00 2001 From: Andrei <92177534+andrei-21@users.noreply.github.com> Date: Tue, 25 Jul 2023 10:08:28 +0100 Subject: [PATCH] Remove `bundled` feature of `rusqlite` for iOS target (#523) `bundled` enables `modern_sqlite` feature (i.e. it uses the API of recent versions of SQLite). But iOS does not use the bundled version (maybe it doesn't get bundled for iOS) and iOS native version of SQLite is not very recent. --- eel/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eel/Cargo.toml b/eel/Cargo.toml index 38f63be2..4056ca38 100644 --- a/eel/Cargo.toml +++ b/eel/Cargo.toml @@ -28,7 +28,6 @@ num_enum = "0.6.1" prost = "0.11.9" rand = "0.8.5" reqwest = { version = "0.11.18", default-features = false, features = ["blocking", "rustls-tls"] } -rusqlite = { version = "0.29.0", features = ["bundled", "chrono"] } # Explicitly depend on secp256k1 for secp256k1::SECP256K1. secp256k1 = { version = "0.24.3", features = ["global-context"] } thiserror = "1.0.44" @@ -37,6 +36,12 @@ tonic = "0.9.2" perro = { git = "https://github.com/getlipa/perro", tag = "v1.1.0" } +# Bundle sqlite for all targets except iOS. +[target.'cfg(not(target_os = "ios"))'.dependencies] +rusqlite = { version = "0.29.0", features = ["bundled", "chrono"] } +[target.'cfg(target_os = "ios")'.dependencies] +rusqlite = { version = "0.29.0", features = ["chrono"] } + [dev-dependencies] colored = "2.0.4" ctor = "0.2.4"