Skip to content

Commit

Permalink
feat(sdk): Enable HTTP/2 support
Browse files Browse the repository at this point in the history
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 <zecakeh@tedomum.fr>
  • Loading branch information
zecakeh committed Jan 21, 2025
1 parent 210c574 commit 4de84df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/matrix-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ All notable changes to this project will be documented in this file.
related to room access and visibility.
([#4401](https://github.com/matrix-org/matrix-rust-sdk/pull/4401))

- Enable HTTP/2 support in the HTTP client.
([#4566](https://github.com/matrix-org/matrix-rust-sdk/pull/4566))

### Refactor

- [**breaking**] Move the optional `RequestConfig` argument of the
Expand Down
4 changes: 2 additions & 2 deletions crates/matrix-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ zeroize = { workspace = true }

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

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

0 comments on commit 4de84df

Please sign in to comment.