atagen

macltok

public
Star0
Watch0
713205a95af25a47e69b765f3f76902360fe75dd
3
ssh://brewery@pls.lobotomise.me:33/atagen/macltok.git
Cargo.tomlToml63 lines2.4 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", "imbl/serde"]
10
sqlite = ["matrix-sdk/sqlite", "serde", "dep:url", "dep:matrix-sdk-store-encryption"]
11
bundled-sqlite = ["sqlite", "matrix-sdk/bundled-sqlite"]
12
indexeddb = [
13
    "matrix-sdk/indexeddb",
14
    "serde",
15
    "dep:url",
16
    "dep:matrix-sdk-store-encryption",
17
    "dep:indexed_db_futures",
18
]
19
20
[dependencies]
21
futures-util = { version = "0.3.31", default-features = false, features = ["std"] }
22
http = "1"
23
imbl = { version = "6.1.0", default-features = false }
24
matrix-sdk = { version = "0.18.0", default-features = false, features = ["e2e-encryption"] }
25
matrix-sdk-crypto = { version = "0.18.0", default-features = false }
26
matrix-sdk-store-encryption = { version = "0.18.0", optional = true }
27
matrix-sdk-ui = { version = "0.18.0", default-features = false }
28
ruma = { version = "0.16.0", default-features = false }
29
serde = { version = "1.0.219", features = ["derive", "rc"], optional = true }
30
thiserror = "2.0.16"
31
mime = "0.3.17"
32
sha2 = "0.10.9"
33
tokio = { version = "1.47.1", features = ["macros", "sync"] }
34
tracing = "0.1.41"
35
url = { version = "2.5.7", optional = true }
36
37
[target.'cfg(target_family = "wasm")'.dependencies]
38
getrandom = { version = "0.2", features = ["js"] }
39
getrandom3 = { package = "getrandom", version = "0.3", features = ["wasm_js"] }
40
getrandom4 = { package = "getrandom", version = "0.4", features = ["wasm_js"] }
41
indexed_db_futures = { package = "matrix_indexed_db_futures", version = "0.7.0", optional = true, features = ["typed-arrays"] }
42
matrix-sdk = { version = "0.18.0", default-features = false, features = ["js"] }
43
matrix-sdk-ui = { version = "0.18.0", default-features = false, features = ["js"] }
44
# the sdk's own wasm reqwest leaves out stream, which the bounded media download needs
45
reqwest = { version = "0.13.1", default-features = false, features = ["stream"] }
46
uuid = { version = "1", features = ["js"] }
47
48
[dev-dependencies]
49
matrix-sdk = { version = "0.18.0", default-features = false, features = ["testing"] }
50
matrix-sdk-test = "0.18.0"
51
serde_json = "1.0.143"
52
tokio = { version = "1.47.1", features = ["macros", "rt-multi-thread", "signal", "time"] }
53
wiremock = "0.6.5"
54
55
[[example]]
56
name = "headless"
57
required-features = ["sqlite"]
58
59
[lints.rust]
60
unsafe_code = "forbid"
61
62
[lints.clippy]
63
all = "warn"