atagen

macltok

public
Star0
Watch0
9c05b1dd327a57081652545c709cc8d7e961de15
3
ssh://brewery@pls.lobotomise.me:33/atagen/macltok.git
harness/web/Cargo.tomlToml47 lines965 B
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