mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-17 21:20:06 -04:00
34 lines
1.1 KiB
TOML
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"
|