Skip to content

Commit fca0a05

Browse files
Daniel SalinasDaniel Salinas
authored andcommitted
Remaining changes to compile on wasm32 platform
1 parent cbff3cd commit fca0a05

File tree

53 files changed

+450
-318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+450
-318
lines changed

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/matrix-sdk-ffi/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ crate-type = ["cdylib", "staticlib"]
1919
[features]
2020
default = ["bundled-sqlite"]
2121
bundled-sqlite = ["matrix-sdk/bundled-sqlite"]
22-
wasm = []
22+
js = []
2323

2424
[dependencies]
2525
anyhow.workspace = true
@@ -37,7 +37,6 @@ matrix-sdk-ui = { workspace = true, features = ["uniffi"] }
3737
mime = "0.3.16"
3838
once_cell.workspace = true
3939
ruma = { workspace = true, features = ["html", "unstable-unspecified", "unstable-msc3488", "compat-unset-avatar", "unstable-msc3245-v1-compat", "unstable-msc4278"] }
40-
sentry-tracing = "0.36.0"
4140
serde.workspace = true
4241
serde_json.workspace = true
4342
thiserror.workspace = true
@@ -67,10 +66,12 @@ features = [
6766
paranoid-android = "0.2.1"
6867

6968
[target.'cfg(target_family = "wasm")'.dependencies]
69+
console_error_panic_hook = "0.1.7"
7070
tokio = { workspace = true, features = ["sync", "macros"] }
7171
uniffi = { workspace = true, features = ["tokio", "wasm-unstable-single-threaded"] }
7272

7373
[target.'cfg(not(target_family = "wasm"))'.dependencies]
74+
sentry-tracing = "0.36.0"
7475
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
7576
uniffi = { workspace = true, features = ["tokio"] }
7677

0 commit comments

Comments
 (0)