atagen

malice

public
Star0
Watch0
9090eb8cdf5f6e853fd8a08b68b8d5fcc31b062a
2
ssh://brewery@pls.lobotomise.me:33/atagen/malice.git
crates/malice-worker/Cargo.tomlToml62 lines1.9 KB
1
[package]
2
name = "malice-worker"
3
version = "0.1.0"
4
edition = "2024"
5
publish = false
6
7
# malice-worker's wasm profile needs are workspace-wide settings (debug info off
8
# for dev, panic=abort and LTO for release) that would otherwise leak into
9
# malice-server's native build if this crate stayed in the root workspace, so it
10
# gets its own, like macltok's harness/web.
11
[workspace]
12
13
[lib]
14
crate-type = ["cdylib", "rlib"]
15
16
[target.'cfg(target_family = "wasm")'.dependencies]
17
macltok = { git = "ssh://brewery@pls.lobotomise.me:33/atagen/macltok", rev = "502ed9fc1d3eaa3f7654cebdb42a0f35a5bccfe1", features = ["indexeddb", "serde", "mirror"] }
18
malice-core = { path = "../malice-core" }
19
ruma = { version = "0.16", default-features = false }
20
futures-util = { version = "0.3", default-features = false, features = ["std"] }
21
futures-channel = "0.3"
22
serde_json = "1"
23
# pinned exactly so flake.nix's wasmBindgenCli, built for this locked version, matches
24
# what wasm-bindgen-test-runner needs at test time
25
wasm-bindgen = "=0.2.128"
26
wasm-bindgen-futures = "=0.4.78"
27
js-sys = "=0.3.105"
28
tracing = "0.1"
29
tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "registry"] }
30
31
[dev-dependencies]
32
matrix-sdk = { git = "ssh://brewery@pls.lobotomise.me:33/atagen/matrix-rust-sdk", rev = "f4492538e13dc0ca0a16717a962416a796415fb5", default-features = false }
33
wasm-bindgen-test = "0.3"
34
web-sys = { version = "0.3", features = ["SharedWorkerGlobalScope"] }
35
gloo-timers = { version = "0.3", features = ["futures"] }
36
37
[lints.rust]
38
unsafe_code = "forbid"
39
40
# with debuginfo the test wasm balloons and can OOM the test runner, per macltok's
41
# own harness/web/Cargo.toml
42
[profile.dev]
43
debug = false
44
45
[profile.release]
46
opt-level = "z"
47
lto = true
48
codegen-units = 1
49
panic = "abort"
50
strip = true
51
52
[profile.release.package.pbkdf2]
53
opt-level = 3
54
55
[profile.release.package.sha2]
56
opt-level = 3
57
58
[profile.release.package.hmac]
59
opt-level = 3
60
61
[profile.release.package.chacha20poly1305]
62
opt-level = 3