Skip to content

Commit 2f67b62

Browse files
committed
Unbreak wasm_command_bot compilation
1 parent 74172da commit 2f67b62

File tree

1 file changed

+6
-0
lines changed
  • crates/matrix-sdk/examples/wasm_command_bot

1 file changed

+6
-0
lines changed

crates/matrix-sdk/examples/wasm_command_bot/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"] }
1515
wasm-bindgen-futures = "0.4.24"
1616
console_error_panic_hook = "0.1.6"
1717
web-sys = { version = "0.3.51", features = ["console"] }
18+
# The uuid and getrandom crates are indirect dependencies that require extra features to be enabled
19+
# for (some) wasm use cases. FIXME: These features should be re-exposed by matrix-sdk / Ruma but for
20+
# now adding the extra dependency here is a good-enough workaround.
21+
uuid = { version = "0.8.2", features = ["wasm-bindgen"] }
22+
# https://docs.rs/getrandom/latest/getrandom/#webassembly-support
23+
getrandom = { version = "0.2.4", features = ["js"] }
1824

1925
[dependencies.matrix-sdk]
2026
path = "../.."

0 commit comments

Comments
 (0)