Skip to content

Commit 3f544f1

Browse files
committed
add tokio-util to wasm
1 parent d3b5473 commit 3f544f1

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

crates/matrix-sdk/Cargo.toml

+26-9
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,41 @@ features = ["docsrs"]
1616
rustdoc-args = ["--cfg", "docsrs"]
1717

1818
[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+
]
2133

2234
e2e-encryption = [
2335
"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
2638
]
2739
js = ["matrix-sdk-common/js", "matrix-sdk-base/js"]
2840

2941
sqlite = [
3042
"dep:matrix-sdk-sqlite",
3143
"matrix-sdk-sqlite?/state-store",
32-
"matrix-sdk-sqlite?/event-cache"
44+
"matrix-sdk-sqlite?/event-cache",
3345
]
3446
bundled-sqlite = ["sqlite", "matrix-sdk-sqlite?/bundled"]
3547
indexeddb = ["matrix-sdk-indexeddb/state-store"]
3648

3749
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+
]
3954
markdown = ["ruma/markdown"]
4055
native-tls = ["reqwest/native-tls"]
4156
rustls-tls = ["reqwest/rustls-tls"]
@@ -96,7 +111,7 @@ mime2ext = "0.1.53"
96111
once_cell = { workspace = true }
97112
percent-encoding = "2.3.1"
98113
pin-project-lite = { workspace = true }
99-
rand = { workspace = true , optional = true }
114+
rand = { workspace = true, optional = true }
100115
ruma = { workspace = true, features = [
101116
"rand",
102117
"unstable-msc2448",
@@ -121,6 +136,7 @@ urlencoding = "2.1.3"
121136
uuid = { workspace = true, features = ["serde", "v4"], optional = true }
122137
vodozemac = { workspace = true }
123138
zeroize = { workspace = true }
139+
tokio-util = "0.7.13"
124140

125141
[target.'cfg(target_arch = "wasm32")'.dependencies]
126142
gloo-timers = { workspace = true, features = ["futures"] }
@@ -129,12 +145,13 @@ tokio = { workspace = true, features = ["macros"] }
129145

130146
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
131147
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 }
133151
# only activate reqwest's stream feature on non-wasm, the wasm part seems to not
134152
# support *sending* streams, which makes it useless for us.
135153
reqwest = { workspace = true, features = ["stream", "gzip", "http2"] }
136154
tokio = { workspace = true, features = ["fs", "rt", "macros"] }
137-
tokio-util = "0.7.13"
138155
wiremock = { workspace = true, optional = true }
139156

140157
[dev-dependencies]

0 commit comments

Comments
 (0)