Skip to content

Commit 9ae658c

Browse files
zecakehpoljar
authored andcommitted
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 4341aaf commit 9ae658c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-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/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ All notable changes to this project will be documented in this file.
2323
related to room access and visibility.
2424
([#4401](https://github.com/matrix-org/matrix-rust-sdk/pull/4401))
2525

26+
- Enable HTTP/2 support in the HTTP client.
27+
([#4566](https://github.com/matrix-org/matrix-rust-sdk/pull/4566))
28+
2629
### Refactor
2730

2831
- [**breaking**] Move the optional `RequestConfig` argument of the

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)