atagen

macltok

public
Star0
Watch0
0291516d40b5b2bc402e7bbb1e7f41a962827bcb
3
ssh://brewery@pls.lobotomise.me:33/atagen/macltok.git
harness/web/Cargo.tomlToml57 lines1.6 KB
1
[package]
2
name = "macltok-web"
3
version = "0.1.0"
4
edition = "2024"
5
publish = false
6
7
[workspace]
8
9
[lib]
10
crate-type = ["cdylib", "rlib"]
11
12
[features]
13
default = ["store"]
14
# the flake reads the macltok store feature name from here
15
store = ["macltok/indexeddb"]
16
17
[dependencies]
18
macltok = { path = "../.." }
19
wasm-bindgen = "0.2"
20
wasm-bindgen-futures = "0.4"
21
futures-channel = "0.3"
22
futures-util = { version = "0.3", default-features = false }
23
gloo-timers = { version = "0.3", features = ["futures"] }
24
js-sys = "0.3"
25
26
[dev-dependencies]
27
wasm-bindgen-test = "0.3"
28
web-sys = { version = "0.3", features = [
29
    "Blob",
30
    "BlobPropertyBag",
31
    "DedicatedWorkerGlobalScope",
32
    "SharedWorkerGlobalScope",
33
    "Url",
34
    "Worker",
35
] }
36
37
# with debuginfo the test wasm is 580 MB and wasm-bindgen-test-runner peaked at 11 GB before the
38
# OOM killer took it
39
[profile.dev]
40
debug = false
41
42
[profile.release]
43
opt-level = "z"
44
lto = true
45
codegen-units = 1
46
panic = "abort"
47
strip = true
48
49
[patch.crates-io]
50
matrix-sdk = { path = "../../../matrix-rust-sdk/crates/matrix-sdk" }
51
matrix-sdk-base = { path = "../../../matrix-rust-sdk/crates/matrix-sdk-base" }
52
matrix-sdk-common = { path = "../../../matrix-rust-sdk/crates/matrix-sdk-common" }
53
matrix-sdk-crypto = { path = "../../../matrix-rust-sdk/crates/matrix-sdk-crypto" }
54
matrix-sdk-indexeddb = { path = "../../../matrix-rust-sdk/crates/matrix-sdk-indexeddb" }
55
matrix-sdk-sqlite = { path = "../../../matrix-rust-sdk/crates/matrix-sdk-sqlite" }
56
matrix-sdk-store-encryption = { path = "../../../matrix-rust-sdk/crates/matrix-sdk-store-encryption" }
57
matrix-sdk-ui = { path = "../../../matrix-rust-sdk/crates/matrix-sdk-ui" }