From b9d75f38743113c054be3d97af36bdd2a7dd0d69 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Thu, 17 Apr 2025 11:03:51 +0100 Subject: feat(filamento): compiles on wasm --- jid/Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'jid/Cargo.toml') diff --git a/jid/Cargo.toml b/jid/Cargo.toml index d5983ea..57421ef 100644 --- a/jid/Cargo.toml +++ b/jid/Cargo.toml @@ -6,5 +6,9 @@ edition = "2021" [features] sqlx = ["dep:sqlx"] -[dependencies] -sqlx = { version = "0.8.3", features = ["sqlite"], optional = true } +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +# sqlx = { version = "0.8.3", features = ["sqlite"], optional = true } +sqlx = { path = "../../remote/sqlx", features = ["sqlite"], optional = true } + +[target.'cfg(target_arch = "wasm32")'.dependencies] +sqlx = { path = "../../remote/sqlx", features = ["sqlite-precompiled-wasm"], optional = true } -- cgit