sagebind / isahc

The practical HTTP client that is fun to use.
https://docs.rs/isahc
MIT License
712 stars 62 forks source link

Update tiny_http requirement from 0.9 to 0.12 #414

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Updates the requirements on tiny_http to permit the latest version.

Release notes

Sourced from tiny_http's releases.

0.12.0

  • Bumped the minimum compiler version tested by CI to 1.56 - this is necessary due to an increasing number of dependencies introducing Cargo manifest features only supported on newer versions of Rust.

  • Add support for UNIX sockets Thanks to @​ColonelThirtyTwo for adding support for binding to UNIX sockets when creating a tiny-http server. This change makes a few small breaking API modifications, if you are constructing ServerConfig manually you will need to use the new ListenAddr type rather than directly supplying a net::SocketAddr. Likewise Server::server_addr() will now return an enum that can represent either a TCP socket or a UNIX socket.

    Finally Request::remote_addr() now returns an Option<&SocketAddr> as UNIX sockets don't ever have a remote host.

  • Reduce required dependencies by switching to httpdate @​esheppa replaced our internal HTTPDate type with the httpdate library (used extensively in the community by Hyper, Tokio and others) which reduces our baseline dependency tree from 18 crates to 5!

  • TestRequest::path no longer has a 'static bound, allowing for fuzzers to generate test request paths at runtime.

  • Unpinned zeroize so it can float around any stable ^1 version.

New Contributors

Full Changelog: https://github.com/tiny-http/tiny-http/compare/0.11.0...0.12.0

Changelog

Sourced from tiny_http's changelog.

0.12.0

  • Bumped the minimum compiler version tested by CI to 1.56 - this is necessary due to an increasing number of dependencies introducing Cargo manifest features only supported on newer versions of Rust.

  • Add support for UNIX sockets

    Thanks to @​ColonelThirtyTwo for adding support for binding to UNIX sockets when creating a tiny-http server. This change makes a few small breaking API modifications, if you are constructing ServerConfig manually you will need to use the new ListenAddr type rather than directly supplying a net::SocketAddr. Likewise Server::server_addr() will now return an enum that can represent either a TCP socket or a UNIX socket.

    Finally Request::remote_addr() now returns an Option<&SocketAddr> as UNIX sockets don't ever have a remote host.

  • Reduce required dependencies by switching to httpdate

    @​esheppa replaced our internal HTTPDate type with the httpdate library (used extensively in the community by Hyper, Tokio and others) which reduces our baseline dependency tree from 18 crates to 5!

  • TestRequest::path no longer has a 'static bound, allowing for fuzzers to generate test request paths at runtime.

  • Unpinned zeroize so it can float around any stable ^1 version.

0.11.0

  • Add support for Rustls

    Thanks to @​3xmblzj5 and @​travispaul for their help in implementing Rustls as a drop-in replacement for OpenSSL, you can now build tiny-http with TLS support without any external dependencies! OpenSSL will remain the default implementation if you just enable the ssl feature, but you are strongly encouraged to use ssl-rustls where possible!

  • Fix incorrect certificate chain loading

    Fix a longstanding bug where we were only loading the first (i.e. the leaf) certificate from any PEM file supplied by the user.

0.10.0

  • Replace chrono with time-rs

    chrono was only used to store and format DateTime into the slightly odd format required by RFC 7231, so to avoid the numerous RUSTSEC advisories generated by the localtime_r issue, we can just drop it entirely and switch to time-rs. Unfortunately this means we need to bump our minimum tested compiler version to 1.51, and as such this change requires a full minor release.

0.9.0

... (truncated)

Commits
  • 212b1c4 Prepare for 0.12.0 release
  • 87b00a8 Merge pull request #228 from esheppa/use-httpdate
  • c2a38ad remove unused url dependency, switch to httpdate
  • f0fce7e Remove the 'static requirement on TestRequest::path
  • dd9c8dd Use ^1 zeroize
  • b9d9e8a Update log dependency to 0.4.4
  • 789e1c1 Add support for UNIX sockets
  • c5177b0 Release v0.11.0
  • 876efd6 Correctly load certificate chains into OpenSSL
  • a9823f2 Refactor SSL support into two modules
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
codecov[bot] commented 2 years ago

Codecov Report

Base: 52.00% // Head: 52.45% // Increases project coverage by +0.45% :tada:

Coverage data is based on head (ce23343) compared to base (9bd9661). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #414 +/- ## ========================================== + Coverage 52.00% 52.45% +0.45% ========================================== Files 52 52 Lines 5813 5793 -20 ========================================== + Hits 3023 3039 +16 + Misses 2790 2754 -36 ``` | [Impacted Files](https://codecov.io/gh/sagebind/isahc/pull/414?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stephen+M.+Coakley) | Coverage Δ | | |---|---|---| | [src/macros.rs](https://codecov.io/gh/sagebind/isahc/pull/414/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stephen+M.+Coakley#diff-c3JjL21hY3Jvcy5ycw==) | `6.58% <0.00%> (-0.39%)` | :arrow_down: | | [src/lib.rs](https://codecov.io/gh/sagebind/isahc/pull/414/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stephen+M.+Coakley#diff-c3JjL2xpYi5ycw==) | `16.68% <0.00%> (-0.06%)` | :arrow_down: | | [src/request.rs](https://codecov.io/gh/sagebind/isahc/pull/414/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stephen+M.+Coakley#diff-c3JjL3JlcXVlc3QucnM=) | `54.14% <0.00%> (ø)` | | | [src/agent/mod.rs](https://codecov.io/gh/sagebind/isahc/pull/414/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stephen+M.+Coakley#diff-c3JjL2FnZW50L21vZC5ycw==) | `77.89% <0.00%> (+0.11%)` | :arrow_up: | | [src/response.rs](https://codecov.io/gh/sagebind/isahc/pull/414/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stephen+M.+Coakley#diff-c3JjL3Jlc3BvbnNlLnJz) | `61.53% <0.00%> (+1.16%)` | :arrow_up: | | [src/cookies/psl/mod.rs](https://codecov.io/gh/sagebind/isahc/pull/414/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stephen+M.+Coakley#diff-c3JjL2Nvb2tpZXMvcHNsL21vZC5ycw==) | `95.08% <0.00%> (+14.12%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stephen+M.+Coakley). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stephen+M.+Coakley)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.