Skip to content

Commit

Permalink
Use rustls for http fetches
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Jan 10, 2025
1 parent 7e5b00e commit 7263ab3
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 77 deletions.
213 changes: 137 additions & 76 deletions Cargo.lock

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

10 changes: 9 additions & 1 deletion rust/http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ tokio.workspace = true
pyo3_util.workspace = true
tracing.workspace = true

reqwest = { version = "0.12", features = ["gzip", "deflate", "stream"] }
scopeguard = "1"
eventsource-stream = "0.2.3"

# We want to use rustls to avoid setenv issues OpenSSL and the system certs.
# We add these features:
# - http2: to use HTTP/2
# - charset: to support charset encoding
# - gzip/deflate/brotli: to support compression
# - stream: to support streaming responses
# - rustls-tls-native-roots: to use the native root certificates (rather than WebPKI)
reqwest = { version = "0.12", default-features = false, features = ["http2", "charset", "gzip", "deflate", "brotli", "stream", "rustls-tls-native-roots"] }

futures = "0"

[dev-dependencies]
Expand Down

0 comments on commit 7263ab3

Please sign in to comment.