atagen

matrix-rust-sdk

public
Star0
Watch0
ssh://brewery@pls.lobotomise.me:33/atagen/matrix-rust-sdk.git
bindings/matrix-sdk-crypto-ffi/Cargo.tomlToml78 lines2.1 KB
1
[package]
2
name = "matrix-sdk-crypto-ffi"
3
version = "0.1.0"
4
authors = ["Damir Jelić <poljar@termina.org.uk>"]
5
edition = "2024"
6
rust-version.workspace = true
7
description = "Uniffi based bindings for the Rust SDK crypto crate"
8
repository = "https://github.com/matrix-org/matrix-rust-sdk"
9
license = "Apache-2.0"
10
publish = false
11
12
[package.metadata.release]
13
release = false
14
15
[lib]
16
crate-type = ["cdylib", "staticlib"]
17
18
[[bin]]
19
name = "matrix_sdk_crypto_ffi"
20
path = "uniffi-bindgen.rs"
21
22
[features]
23
default = ["bundled-sqlite"]
24
bundled-sqlite = ["matrix-sdk-sqlite/bundled"]
25
26
# Enable experimental support for encrypting state events; see
27
# https://github.com/matrix-org/matrix-rust-sdk/issues/5397.
28
experimental-encrypted-state-events = [
29
    "matrix-sdk-crypto/experimental-encrypted-state-events",
30
]
31
32
[dependencies]
33
anyhow.workspace = true
34
futures-util.workspace = true
35
hmac.workspace = true
36
http.workspace = true
37
matrix-sdk-common = { workspace = true, features = ["uniffi"] }
38
matrix-sdk-ffi-macros.workspace = true
39
pbkdf2.workspace = true
40
rand.workspace = true
41
ruma.workspace = true
42
serde.workspace = true
43
serde_json.workspace = true
44
sha2.workspace = true
45
thiserror.workspace = true
46
tracing-subscriber = { workspace = true, features = ["env-filter"] }
47
# keep in sync with uniffi dependency in matrix-sdk-ffi, and uniffi_bindgen in ffi CI job
48
uniffi = { workspace = true, features = ["cli"] }
49
vodozemac.workspace = true
50
zeroize = { workspace = true, features = ["zeroize_derive"] }
51
52
[dependencies.js_int]
53
version = "0.2.2"
54
default-features = false
55
features = ["lax_deserialize"]
56
57
[dependencies.matrix-sdk-crypto]
58
workspace = true
59
features = ["qrcode", "automatic-room-key-forwarding", "uniffi"]
60
61
[dependencies.matrix-sdk-sqlite]
62
workspace = true
63
features = ["crypto-store"]
64
65
[dependencies.tokio]
66
workspace = true
67
features = ["rt-multi-thread"]
68
69
[build-dependencies]
70
uniffi = { workspace = true, default-features = false, features = ["build"] }
71
vergen-gitcl = { workspace = true, default-features = false, features = ["build"] }
72
73
[dev-dependencies]
74
assert_matches2.workspace = true
75
tempfile.workspace = true
76
77
[lints]
78
workspace = true