From df9738d945ae65d532354b1955f8eef0dff33331 Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Thu, 19 Dec 2024 11:04:08 -0800 Subject: [PATCH] fix wasm dependencies --- Cargo.lock | 1 + xmtp_content_types/Cargo.toml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 0908ef7f8..198eff648 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7323,6 +7323,7 @@ dependencies = [ "prost", "rand", "serde", + "sqlite-web", "thiserror 2.0.6", "tonic", "xmtp_common", diff --git a/xmtp_content_types/Cargo.toml b/xmtp_content_types/Cargo.toml index 52fa200b5..2c00cc3d5 100644 --- a/xmtp_content_types/Cargo.toml +++ b/xmtp_content_types/Cargo.toml @@ -20,3 +20,10 @@ xmtp_common = { workspace = true, features = ['test-utils'] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] tonic = { version = "0.12", features = ["transport"] } diesel = { workspace = true } + +[target.'cfg(target_arch = "wasm32")'.dependencies] +diesel = { workspace = true, features = [ + "returning_clauses_for_sqlite_3_35", +] } +sqlite-web = { workspace = true } +