Skip to content

Commit cbff3cd

Browse files
Daniel SalinasDaniel Salinas
authored andcommitted
Target family=wasm
1 parent 075988a commit cbff3cd

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

Cargo.lock

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/matrix-sdk-ffi-macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ pub fn export(attr: TokenStream, item: TokenStream) -> TokenStream {
5353
Ok(item) => match has_async_fn(item) {
5454
true => {
5555
quote! {
56-
#[cfg_attr(target_arch = "wasm32", uniffi::export(#attr2))]
57-
#[cfg_attr(not(target_arch = "wasm32"), uniffi::export(async_runtime = "tokio", #attr2))]
56+
#[cfg_attr(target_family = "wasm", uniffi::export(#attr2))]
57+
#[cfg_attr(not(target_family = "wasm"), uniffi::export(async_runtime = "tokio", #attr2))]
5858
}
5959
}
6060
false => quote! { #[uniffi::export(#attr2)] },

crates/matrix-sdk-common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async-compat.workspace = true
4444
tokio = { workspace = true, features = ["rt", "macros"] }
4545

4646
[target.'cfg(target_family = "wasm")'.dependencies]
47+
futures-executor.workspace = true
4748
futures-util = { workspace = true, features = ["channel"] }
4849
gloo-timers = { workspace = true, features = ["futures"] }
4950
tracing-subscriber = { workspace = true, features = ["fmt", "ansi"] }

crates/matrix-sdk-indexeddb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The most common usage pattern would be to have this included via `matrix-sdk` in
88
instantiation to it.
99

1010
```toml,no_test
11-
[target.'cfg(target_arch = "wasm32")'.dependencies]
11+
[target.'cfg(target_family = "wasm")'.dependencies]
1212
matrix-sdk = { version = "0.5, default-features = false, features = ["indexeddb", "e2e-encryption"] }
1313
```
1414

xtask/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ clap = { version = "4.0.18", features = ["derive"] }
2020
fs_extra = "1"
2121
serde = { workspace = true, features = ["derive"] }
2222
serde_json.workspace = true
23-
serde_json.workspace = true
2423
toml = "0.5.11"
2524
uniffi_bindgen.workspace = true
2625
xshell = "0.2.2"

0 commit comments

Comments
 (0)