Files
matrix-rust-sdk/crates/matrix-sdk/examples/wasm_command_bot/Cargo.toml
2022-03-10 17:28:34 +01:00

34 lines
1.1 KiB
TOML

[package]
name = "wasm"
version = "0.1.0"
authors = ["stoically <stoically@protonmail.com>"]
edition = "2018"
# Config mostly pulled from: https://github.com/rustwasm/wasm-bindgen/blob/master/examples/fetch/Cargo.toml
[lib]
crate-type = ["cdylib"]
[dependencies]
url = "2.2.2"
wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"] }
wasm-bindgen-futures = "0.4.24"
console_error_panic_hook = "0.1.6"
web-sys = { version = "0.3.51", features = ["console"] }
# The uuid and getrandom crates are indirect dependencies that require extra features to be enabled
# for (some) wasm use cases. FIXME: These features should be re-exposed by matrix-sdk / Ruma but for
# now adding the extra dependency here is a good-enough workaround.
uuid = { version = "0.8.2", features = ["wasm-bindgen"] }
# https://docs.rs/getrandom/latest/getrandom/#webassembly-support
getrandom = { version = "0.2.4", features = ["js"] }
[dependencies.matrix-sdk]
path = "../.."
default-features = false
features = ["native-tls", "encryption", "indexeddb_state_store", "indexeddb_cryptostore"]
[workspace]
[dev-dependencies]
wasm-bindgen-test = "0.2"