Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate tiny_http to 0.12 #21902

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 12, 2024

This PR contains the following updates:

Package Type Update Change
tiny_http dependencies minor 0.8 -> 0.12
tiny_http workspace.dependencies minor 0.8 -> 0.12

Release Notes

tiny-http/tiny-http (tiny_http)

v0.12.0

Compare Source

  • 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.

v0.11.0

Compare Source

  • 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.

v0.10.0

Compare Source

  • 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.

v0.9.0

Compare Source

  • Rust 2018 Refactor

  • Enable prompt responses, before the request has been fully read

    This isn't an API change, but does result in different behaviour to 0.8.2 and so justifies a minor version bump.

    HTTP requests now return a boxed FusedReader which drops the underlying
    reader once it reaches EOF, such that the reader no longer needs to be
    explicitly consumed and the server may now respond with e.g. a "413 Payload
    too large" without waiting for the whole reader.

  • Bumped the minimum compiler version tested by CI to 1.48 (the version supported in Debian Bullseye)


Configuration

📅 Schedule: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 12, 2024
@maxdeviant
Copy link
Member

Closing as this requires navigating some breaking changes.

@maxdeviant maxdeviant closed this Jan 3, 2025
Copy link
Contributor Author

renovate bot commented Jan 3, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.12). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/tiny_http-0.x branch January 3, 2025 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant