Skip to content

Commit be2d039

Browse files
committed
fix depenendencies for the wasm bindings
wasm methods use futures-executor which was missing from the dependencies so far. Additionally as wasm isn't Send we need to tell uniffi about that when compiling for wasm. Signed-off-by: MTRNord <[email protected]>
1 parent 518f098 commit be2d039

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bindings/matrix-sdk-ffi/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ oauth2.workspace = true
8989
[target.'cfg(target_family = "wasm")'.dependencies]
9090
console_error_panic_hook = "0.1.7"
9191
tokio = { workspace = true, features = ["sync", "macros"] }
92-
uniffi.workspace = true
92+
uniffi = { workspace = true, features = ["wasm-unstable-single-threaded"] }
93+
futures-executor.workspace = true
9394

9495
[target.'cfg(not(target_family = "wasm"))'.dependencies]
9596
async-compat.workspace = true

0 commit comments

Comments
 (0)