Make sqlite bundling optional

This commit is contained in:
Jonas Platte 2023-03-30 15:37:57 +02:00 committed by Jonas Platte
parent 48b67759ed
commit 7dd086fcdc
4 changed files with 14 additions and 4 deletions

View File

@ -12,6 +12,10 @@ publish = false
[lib]
crate-type = ["cdylib", "staticlib"]
[features]
default = ["bundled-sqlite"]
bundled-sqlite = ["matrix-sdk-sqlite/bundled"]
[dependencies]
anyhow = { workspace = true }
base64 = { workspace = true }

View File

@ -18,7 +18,8 @@ rustdoc-args = ["--cfg", "docsrs"]
crate-type = ["cdylib"]
[features]
default = []
default = ["bundled-sqlite"]
bundled-sqlite = ["matrix-sdk-sqlite/bundled"]
qrcode = ["matrix-sdk-crypto/qrcode"]
tracing = ["dep:tracing-subscriber"]
@ -33,7 +34,7 @@ napi-derive = "2.9.1"
serde_json = { workspace = true }
http = { workspace = true }
tracing-subscriber = { version = "0.3", default-features = false, features = ["tracing-log", "time", "smallvec", "fmt", "env-filter"], optional = true }
vodozemac = { workspace = true, features = ["js"]}
vodozemac = { workspace = true, features = ["js"] }
zeroize = { workspace = true }
[build-dependencies]

View File

@ -12,6 +12,10 @@ repository = "https://github.com/matrix-org/matrix-rust-sdk"
[lib]
crate-type = ["cdylib", "staticlib"]
[features]
default = ["bundled-sqlite"]
bundled-sqlite = ["matrix-sdk-sqlite/bundled"]
[build-dependencies]
uniffi = { workspace = true, features = ["build"] }
@ -60,7 +64,7 @@ features = [
"experimental-sliding-sync",
"experimental-timeline",
"e2e-encryption",
"markdown",
"markdown",
"socks",
"rustls-tls",
]

View File

@ -10,6 +10,7 @@ rust-version = { workspace = true }
[features]
default = []
bundled = ["rusqlite/bundled"]
crypto-store = [
"dep:matrix-sdk-base",
"dep:matrix-sdk-crypto",
@ -30,7 +31,7 @@ matrix-sdk-crypto = { version = "0.6.0", path = "../matrix-sdk-crypto", optional
matrix-sdk-store-encryption = { version = "0.2.0", path = "../matrix-sdk-store-encryption" }
rmp-serde = "1.1.1"
ruma = { workspace = true }
rusqlite = { version = "0.28.0", features = ["bundled"] }
rusqlite = "0.28.0"
serde = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["fs"] }