atagen

macltok

public
Star0
Watch0
62fe32759529d8db8bc39738189399cea0f4511d
3
ssh://brewery@pls.lobotomise.me:33/atagen/macltok.git
Cargo.tomlToml54 lines2.0 KB
1
[package]
2
name = "macltok"
3
version = "0.1.0"
4
edition = "2024"
5
description = "A compact application backend on top of the Matrix Rust SDK"
6
7
[features]
8
default = []
9
serde = ["dep:serde"]
10
sqlite = ["matrix-sdk/sqlite", "serde", "dep:url"]
11
bundled-sqlite = ["sqlite", "matrix-sdk/bundled-sqlite"]
12
indexeddb = ["matrix-sdk/indexeddb", "serde", "dep:url"]
13
14
[dependencies]
15
futures-util = { version = "0.3.31", default-features = false, features = ["std"] }
16
http = "1"
17
matrix-sdk = { version = "0.18.0", default-features = false, features = ["e2e-encryption"] }
18
matrix-sdk-crypto = { version = "0.18.0", default-features = false }
19
matrix-sdk-ui = { version = "0.18.0", default-features = false }
20
ruma = { version = "0.16.0", default-features = false }
21
serde = { version = "1.0.219", features = ["derive", "rc"], optional = true }
22
thiserror = "2.0.16"
23
mime = "0.3.17"
24
sha2 = "0.10.9"
25
tokio = { version = "1.47.1", features = ["macros", "sync"] }
26
tracing = "0.1.41"
27
url = { version = "2.5.7", optional = true }
28
29
[target.'cfg(target_family = "wasm")'.dependencies]
30
getrandom = { version = "0.2", features = ["js"] }
31
getrandom3 = { package = "getrandom", version = "0.3", features = ["wasm_js"] }
32
getrandom4 = { package = "getrandom", version = "0.4", features = ["wasm_js"] }
33
matrix-sdk = { version = "0.18.0", default-features = false, features = ["js"] }
34
matrix-sdk-ui = { version = "0.18.0", default-features = false, features = ["js"] }
35
# the sdk's own wasm reqwest leaves out stream, which the bounded media download needs
36
reqwest = { version = "0.13.1", default-features = false, features = ["stream"] }
37
uuid = { version = "1", features = ["js"] }
38
39
[dev-dependencies]
40
matrix-sdk = { version = "0.18.0", default-features = false, features = ["testing"] }
41
matrix-sdk-test = "0.18.0"
42
serde_json = "1.0.143"
43
tokio = { version = "1.47.1", features = ["macros", "rt-multi-thread", "signal", "time"] }
44
wiremock = "0.6.5"
45
46
[[example]]
47
name = "headless"
48
required-features = ["sqlite"]
49
50
[lints.rust]
51
unsafe_code = "forbid"
52
53
[lints.clippy]
54
all = "warn"