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"