0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-15 14:29:44 +00:00
libsql/bindings/c/Cargo.toml
Oscar Franco 30623f9d1e
React Native support (#1423)
* iOS/Android Support

Add steps for Android

PR comments

* comment size optimization
2024-06-25 17:39:27 +00:00

34 lines
1.1 KiB
TOML

[package]
name = "sql-experimental"
version = "0.0.0"
edition = "2021"
[lib]
crate-type = ["cdylib", "staticlib"]
doc = false
[build-dependencies]
cbindgen = "0.24.0"
[dependencies]
bytes = "1.5.0"
lazy_static = "1.4.0"
tokio = { version = "1.29.1", features = [ "rt-multi-thread" ] }
hyper-rustls = { version = "0.25", features = ["webpki-roots"]}
[target.'cfg(not(any(target_os = "ios", target_os = "android")))'.dependencies]
libsql = { path = "../../libsql", features = ["encryption"] }
# Disable encryption for ios and android targets
[target.'cfg(any(target_os = "ios", target_os = "android"))'.dependencies]
libsql = { path = "../../libsql"}
# The produced binaries are too large for mobiles
# When compiling for iOS or Android, you should turn on symbol stripping, lto and cut debug symbols
# [profile.release]
# debug = false # Exclude debug symbols
# strip = "symbols" # Exclude the rest of the symbols
# # opt-level = "z" # Did not use this, but it equals C++'s optimize for size (O3?)
# lto = true # Link time optimization, not sure what this does but it helps reduce the size