06chaynes / http-cache

A caching middleware that follows HTTP caching rules
https://http-cache.rs/
Apache License 2.0
69 stars 17 forks source link

Update reqwest requirement from 0.11.18 to 0.12.3 #78

Closed dependabot[bot] closed 7 months ago

dependabot[bot] commented 7 months ago

Updates the requirements on reqwest to permit the latest version.

Release notes

Sourced from reqwest's releases.

v0.12.3

What's Changed

  • Add FromStr for dns::Name.
  • Add ClientBuilder::built_in_webpki_certs(bool) to enable them separately.
  • Add ClientBuilder::built_in_native_certs(bool) to enable them separately.
  • Fix sending content-length: 0 for GET requests.
  • Fix response body content_length() to return value when timeout is configured.
  • Fix ClientBuilder::resolve() to use lowercase domain names.

New Contributors

Full Changelog: https://github.com/seanmonstar/reqwest/compare/v0.12.2...v0.12.3

Changelog

Sourced from reqwest's changelog.

v0.12.3

  • Add FromStr for dns::Name.
  • Add ClientBuilder::built_in_webpki_certs(bool) to enable them separately.
  • Add ClientBuilder::built_in_native_certs(bool) to enable them separately.
  • Fix sending content-length: 0 for GET requests.
  • Fix response body content_length() to return value when timeout is configured.
  • Fix ClientBuilder::resolve() to use lowercase domain names.

v0.12.2

  • Fix missing ALPN when connecting to socks5 proxy with rustls.
  • Fix TLS version limits with rustls.
  • Fix not detected ALPN h2 from server with native-tls.

v0.12.1

  • Fix ClientBuilder::interface() when no TLS is enabled.
  • Fix TlsInfo::peer_certificate() being truncated with rustls.
  • Fix panic if http2 feature disabled but TLS negotiated h2 in ALPN.
  • Fix Display for Error to not include its source error.

v0.12.0

  • Upgrade to hyper, http, and http-body v1.
  • Add better support for converting to and from http::Request and http::Response.
  • Add http2 optional cargo feature, default on.
  • Add charset optional cargo feature, default on.
  • Add macos-system-configuration cargo feature, default on.
  • Change all optional dependencies to no longer be exposed as implicit features.
  • Add ClientBuilder::interface(str) to specify the local interface to bind to.
  • Experimental: disables the http3 feature temporarily.

v0.11.27

  • Add hickory-dns feature, deprecating trust-dns.
  • (wasm) Fix Form::text() to not set octet-stream for plain text fields.

v0.11.26

  • Revert system-configuration upgrade, which broke MSRV on macOS.

v0.11.25

  • Fix Certificate::from_pem_bundle() parsing.
  • Fix Apple linker errors from detecting system proxies.

v0.11.24

  • Add Certificate::from_pem_bundle() to add a bundle.

... (truncated)

Commits
  • 0720159 v0.12.3
  • 9209695 Remove duplicate example for ClientBuilder::default_headers (#2236)
  • e3a1565 fix: use lower case domain string when using resolve and resolve_to_addrs...
  • b4c491a feat: allow fine-grained root certs for rustls (#2232)
  • cf4295d chore: update winreg to 0.52.0 (#2226)
  • db25e80 chore: upgrade base64 to 0.22 (#2224)
  • 13e27b7 fix: response body timeout forwards the size hint
  • 872af0c refactor: upgrade to rustls-pemfile 2 (#2222)
  • 68a3f58 fix: stop sending content-length: 0 for GET requests (#2207)
  • 14e46ff FromStr trait implementation for Name (#2212)
  • Additional commits viewable in compare view


You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
orhun commented 7 months ago

Hey, is it possible to get this merged and have a new version of this crate soon? I'm trying to use reqwest 0.12 in my project but it is currently blocked by this.

error[E0277]: the trait bound `Cache<CACacheManager>: reqwest_middleware::Middleware` is not satisfied
   --> git-cliff-core/src/github.rs:208:10
    |
208 |               .with(Cache(HttpCache {
    |  ______________----_^
    | |              |
    | |              required by a bound introduced by this call
209 | |                 mode:    CacheMode::Default,
210 | |                 manager: CACacheManager {
211 | |                     path: dirs::cache_dir()
...   |
219 | |                 options: HttpCacheOptions::default(),
220 | |             }))
    | |______________^ the trait `for<'a> Fn<(reqwest::Request, &'a mut http::extensions::Extensions, reqwest_middleware::Next<'a>)>` is not implemented for `Cache<CACacheManager>`, which is required by `Cache<CACacheManager>: reqwest_middleware::Middleware`
06chaynes commented 7 months ago

I had to wait for request-middleware to be updated but I just checked and looks like that should be good now. I'll try to finish up those changes soon.

06chaynes commented 7 months ago

@orhun crates published!

dependabot[bot] commented 7 months ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

orhun commented 7 months ago

@06chaynes works like a charm, thanks a lot!