forked from matrix-org/matrix-rust-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
83 lines (76 loc) · 2.93 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[package]
authors = ["Damir Jelić <[email protected]>"]
description = "Matrix encryption library"
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
license = "Apache-2.0"
name = "matrix-sdk-crypto"
readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
rust-version = { workspace = true }
version = "0.6.0"
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = []
automatic-room-key-forwarding = []
js = ["ruma/js", "vodozemac/js"]
qrcode = ["dep:matrix-sdk-qrcode"]
backups_v1 = ["dep:bs58", "dep:cbc", "dep:hkdf"]
message-ids = ["dep:ulid"]
experimental-algorithms = []
# Testing helpers for implementations based upon this
testing = ["dep:http"]
[dependencies]
aes = "0.8.1"
atomic = "0.5.1"
async-std = { version = "1.12.0", features = ["unstable"] }
async-trait = { workspace = true }
base64 = { workspace = true }
bs58 = { version = "0.4.0", optional = true }
byteorder = { workspace = true }
cbc = { version = "0.1.2", features = ["std"], optional = true }
cfg-if = "1.0"
ctr = "0.9.1"
dashmap = { workspace = true }
eyeball = { workspace = true }
futures-core = { workspace = true }
futures-util = { workspace = true }
hkdf = { version = "0.12.3", optional = true }
hmac = "0.12.1"
http = { workspace = true, optional = true } # feature = testing only
itertools = "0.10.5"
matrix-sdk-qrcode = { version = "0.4.0", path = "../matrix-sdk-qrcode", optional = true }
matrix-sdk-common = { version = "0.6.0", path = "../matrix-sdk-common" }
pbkdf2 = { version = "0.11.0", default-features = false }
rand = "0.8.5"
rmp-serde = "1.1.1"
ruma = { workspace = true, features = ["rand", "canonical-json"] }
serde = { workspace = true, features = ["derive", "rc"] }
serde_json = { workspace = true }
sha2 = "0.10.2"
tokio-stream = { version = "0.1.12", features = ["sync"] }
tokio = { workspace = true, default-features = false, features = ["sync"] }
thiserror = { workspace = true }
tracing = { workspace = true, features = ["attributes"] }
ulid = { version = "1.0.0", optional = true }
vodozemac = { workspace = true }
zeroize = { workspace = true, features = ["zeroize_derive"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
tokio = { workspace = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true, features = ["time"] }
[dev-dependencies]
anyhow = { workspace = true }
assert_matches = { workspace = true }
ctor = { workspace = true }
futures-executor = { workspace = true }
http = { workspace = true }
indoc = "2.0.1"
matrix-sdk-test = { version = "0.6.0", path = "../../testing/matrix-sdk-test" }
olm-rs = { version = "2.2.0", features = ["serde"] }
proptest = { version = "1.0.0", default-features = false, features = ["std"] }
# required for async_test macro
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }