@@ -16,26 +16,41 @@ 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
47
indexeddb = [" matrix-sdk-indexeddb/state-store" ]
36
48
37
49
qrcode = [" e2e-encryption" , " matrix-sdk-base/qrcode" ]
38
- automatic-room-key-forwarding = [" e2e-encryption" , " matrix-sdk-base/automatic-room-key-forwarding" ]
50
+ automatic-room-key-forwarding = [
51
+ " e2e-encryption" ,
52
+ " matrix-sdk-base/automatic-room-key-forwarding" ,
53
+ ]
39
54
markdown = [" ruma/markdown" ]
40
55
native-tls = [" reqwest/native-tls" ]
41
56
rustls-tls = [" reqwest/rustls-tls" ]
@@ -96,7 +111,7 @@ mime2ext = "0.1.53"
96
111
once_cell = { workspace = true }
97
112
percent-encoding = " 2.3.1"
98
113
pin-project-lite = { workspace = true }
99
- rand = { workspace = true , optional = true }
114
+ rand = { workspace = true , optional = true }
100
115
ruma = { workspace = true , features = [
101
116
" rand" ,
102
117
" unstable-msc2448" ,
@@ -121,6 +136,7 @@ urlencoding = "2.1.3"
121
136
uuid = { workspace = true , features = [" serde" , " v4" ], optional = true }
122
137
vodozemac = { workspace = true }
123
138
zeroize = { workspace = true }
139
+ tokio-util = " 0.7.13"
124
140
125
141
[target .'cfg(target_arch = "wasm32")' .dependencies ]
126
142
gloo-timers = { workspace = true , features = [" futures" ] }
@@ -129,12 +145,13 @@ tokio = { workspace = true, features = ["macros"] }
129
145
130
146
[target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
131
147
backoff = { version = " 0.4.0" , features = [" tokio" ] }
132
- oauth2 = { version = " 5.0.0" , default-features = false , features = [" reqwest" ], optional = true }
148
+ oauth2 = { version = " 5.0.0" , default-features = false , features = [
149
+ " reqwest" ,
150
+ ], optional = true }
133
151
# only activate reqwest's stream feature on non-wasm, the wasm part seems to not
134
152
# support *sending* streams, which makes it useless for us.
135
153
reqwest = { workspace = true , features = [" stream" , " gzip" , " http2" ] }
136
154
tokio = { workspace = true , features = [" fs" , " rt" , " macros" ] }
137
- tokio-util = " 0.7.13"
138
155
wiremock = { workspace = true , optional = true }
139
156
140
157
[dev-dependencies ]
0 commit comments