Skip to content

Commit

Permalink
Remove bundled feature of rusqlite for iOS target (#523)
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
andrei-21 authored Jul 25, 2023
1 parent 8b2e8fc commit 6b67911
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 6b67911

Please sign in to comment.