Skip to content

Commit ecfefa9

Browse files
committed
feat(sdk): Enable HTTP/2 support
It became an optional default feature in reqwest 0.12, and we disable the default features, so I don't think it was meant to be disabled when the crate was upgraded. Signed-off-by: Kévin Commaille <[email protected]>
1 parent 210c574 commit ecfefa9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.lock

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/matrix-sdk/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ zeroize = { workspace = true }
124124

125125
[target.'cfg(target_arch = "wasm32")'.dependencies]
126126
gloo-timers = { workspace = true, features = ["futures"] }
127-
reqwest = { workspace = true, features = ["gzip"] }
127+
reqwest = { workspace = true, features = ["gzip", "http2"] }
128128
tokio = { workspace = true, features = ["macros"] }
129129

130130
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
131131
backoff = { version = "0.4.0", features = ["tokio"] }
132132
openidconnect = { version = "4.0.0-rc.1", optional = true }
133133
# only activate reqwest's stream feature on non-wasm, the wasm part seems to not
134134
# support *sending* streams, which makes it useless for us.
135-
reqwest = { workspace = true, features = ["stream", "gzip"] }
135+
reqwest = { workspace = true, features = ["stream", "gzip", "http2"] }
136136
tokio = { workspace = true, features = ["fs", "rt", "macros"] }
137137
tokio-util = "0.7.12"
138138
wiremock = { workspace = true, optional = true }

0 commit comments

Comments
 (0)