@@ -16,26 +16,44 @@ features = ["docsrs"]
16
16
rustdoc-args = [" --cfg" , " docsrs" ]
17
17
18
18
[features ]
19
- default = [" e2e-encryption" , " automatic-room-key-forwarding" , " sqlite" , " native-tls" ]
20
- testing = [" matrix-sdk-sqlite?/testing" , " matrix-sdk-indexeddb?/testing" , " matrix-sdk-base/testing" , " wiremock" , " matrix-sdk-test" , " assert_matches2" ]
19
+ default = [
20
+ " e2e-encryption" ,
21
+ " automatic-room-key-forwarding" ,
22
+ " sqlite" ,
23
+ " native-tls" ,
24
+ ]
25
+ testing = [
26
+ " matrix-sdk-sqlite?/testing" ,
27
+ " matrix-sdk-indexeddb?/testing" ,
28
+ " matrix-sdk-base/testing" ,
29
+ " wiremock" ,
30
+ " matrix-sdk-test" ,
31
+ " assert_matches2" ,
32
+ ]
21
33
22
34
e2e-encryption = [
23
35
" matrix-sdk-base/e2e-encryption" ,
24
- " matrix-sdk-sqlite?/crypto-store" , # activate crypto-store on sqlite if given
25
- " matrix-sdk-indexeddb?/e2e-encryption" , # activate on indexeddb if given
36
+ " matrix-sdk-sqlite?/crypto-store" , # activate crypto-store on sqlite if given
37
+ " matrix-sdk-indexeddb?/e2e-encryption" , # activate on indexeddb if given
26
38
]
27
39
js = [" matrix-sdk-common/js" , " matrix-sdk-base/js" ]
28
40
29
41
sqlite = [
30
42
" dep:matrix-sdk-sqlite" ,
31
43
" matrix-sdk-sqlite?/state-store" ,
32
- " matrix-sdk-sqlite?/event-cache"
44
+ " matrix-sdk-sqlite?/event-cache" ,
33
45
]
34
46
bundled-sqlite = [" sqlite" , " matrix-sdk-sqlite?/bundled" ]
35
- indexeddb = [" matrix-sdk-indexeddb/state-store" , " matrix-sdk-indexeddb/event-cache-store" ]
47
+ indexeddb = [
48
+ " matrix-sdk-indexeddb/state-store" ,
49
+ " matrix-sdk-indexeddb/event-cache-store" ,
50
+ ]
36
51
37
52
qrcode = [" e2e-encryption" , " matrix-sdk-base/qrcode" ]
38
- automatic-room-key-forwarding = [" e2e-encryption" , " matrix-sdk-base/automatic-room-key-forwarding" ]
53
+ automatic-room-key-forwarding = [
54
+ " e2e-encryption" ,
55
+ " matrix-sdk-base/automatic-room-key-forwarding" ,
56
+ ]
39
57
markdown = [" ruma/markdown" ]
40
58
native-tls = [" reqwest/native-tls" ]
41
59
rustls-tls = [" reqwest/rustls-tls" ]
@@ -96,7 +114,7 @@ mime2ext = "0.1.53"
96
114
once_cell = { workspace = true }
97
115
percent-encoding = " 2.3.1"
98
116
pin-project-lite = { workspace = true }
99
- rand = { workspace = true , optional = true }
117
+ rand = { workspace = true , optional = true }
100
118
ruma = { workspace = true , features = [
101
119
" rand" ,
102
120
" unstable-msc2448" ,
@@ -121,6 +139,7 @@ urlencoding = "2.1.3"
121
139
uuid = { workspace = true , features = [" serde" , " v4" ], optional = true }
122
140
vodozemac = { workspace = true }
123
141
zeroize = { workspace = true }
142
+ tokio-util = " 0.7.13"
124
143
125
144
[target .'cfg(target_arch = "wasm32")' .dependencies ]
126
145
gloo-timers = { workspace = true , features = [" futures" ] }
@@ -134,7 +153,6 @@ openidconnect = { version = "4.0.0", optional = true }
134
153
# support *sending* streams, which makes it useless for us.
135
154
reqwest = { workspace = true , features = [" stream" , " gzip" , " http2" ] }
136
155
tokio = { workspace = true , features = [" fs" , " rt" , " macros" ] }
137
- tokio-util = " 0.7.13"
138
156
wiremock = { workspace = true , optional = true }
139
157
140
158
[dev-dependencies ]
0 commit comments