Skip to content

Commit ceac8ca

Browse files
committed
add tokio util to wasm
1 parent c4a6514 commit ceac8ca

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

crates/matrix-sdk/Cargo.toml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,44 @@ 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"]
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+
]
3651

3752
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+
]
3957
markdown = ["ruma/markdown"]
4058
native-tls = ["reqwest/native-tls"]
4159
rustls-tls = ["reqwest/rustls-tls"]
@@ -96,7 +114,7 @@ mime2ext = "0.1.53"
96114
once_cell = { workspace = true }
97115
percent-encoding = "2.3.1"
98116
pin-project-lite = { workspace = true }
99-
rand = { workspace = true , optional = true }
117+
rand = { workspace = true, optional = true }
100118
ruma = { workspace = true, features = [
101119
"rand",
102120
"unstable-msc2448",
@@ -121,6 +139,7 @@ urlencoding = "2.1.3"
121139
uuid = { workspace = true, features = ["serde", "v4"], optional = true }
122140
vodozemac = { workspace = true }
123141
zeroize = { workspace = true }
142+
tokio-util = "0.7.13"
124143

125144
[target.'cfg(target_arch = "wasm32")'.dependencies]
126145
gloo-timers = { workspace = true, features = ["futures"] }
@@ -134,7 +153,6 @@ openidconnect = { version = "4.0.0", optional = true }
134153
# support *sending* streams, which makes it useless for us.
135154
reqwest = { workspace = true, features = ["stream", "gzip", "http2"] }
136155
tokio = { workspace = true, features = ["fs", "rt", "macros"] }
137-
tokio-util = "0.7.13"
138156
wiremock = { workspace = true, optional = true }
139157

140158
[dev-dependencies]

0 commit comments

Comments
 (0)