Skip to content

Commit 4f8a364

Browse files
renovate[bot]Alan Hanson
and
Alan Hanson
authored
Update Rust crate hyper-staticfile to 0.10 (#1051)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [hyper-staticfile](https://togithub.com/stephank/hyper-staticfile) | workspace.dependencies | minor | `0.9` -> `0.10` | --- ### Release Notes <details> <summary>stephank/hyper-staticfile (hyper-staticfile)</summary> ### [`v0.10.0`](https://togithub.com/stephank/hyper-staticfile/releases/tag/v0.10.0) [Compare Source](https://togithub.com/stephank/hyper-staticfile/compare/v0.9.5...v0.10.0) These are all the changes since v0.9.5 combined: - **Breaking change:** Upgraded to Hyper 1.0. - **Breaking change:** The top-level `resolve*` functions are now methods on a new type `Resolver`. - **Breaking change:** `ResolveResult::Found` now contains a `ResolvedFile`, a new struct replacing the old unnamed tuple parameters. - **Breaking change:** The `FileBytesStream` and `FileResponseBuilder` exports have moved to a `util` submodule. - A filesystem abstraction was added. Different backing can now be implemented using traits from the `vfs` submodule. - **Breaking change:** `Static`, `ResolveResult`, `util::FileBytesStream`, `util::FileBytesStreamRange`, `util::FileBytesStreamMultiRange` are now generic over traits from the `vfs` submodule. The type parameters have defaults set for the Tokio implementation, which should make migration effortless in many cases. - A `MemoryFs` was added, which allows serving files efficiently from memory, and preloading an entire directory into memory. - Added `Static::allowed_encodings`, which can be used to serve precompressed `.br` and `.gz` files if a client requests them with the `Accept-Encoding` header. - Added `Resolver::set_rewrite`, which allows rewriting a request before the filesystem is accessed. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles. 🚦 **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 this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/oxidecomputer/crucible). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alan Hanson <alan@oxide.computer>
1 parent 9d12593 commit 4f8a364

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ httptest = "0.15.5"
5656
human_bytes = "0.4.3"
5757
humantime = "2.1.0"
5858
hyper = { version = "0.14", features = [ "full" ] }
59-
hyper-staticfile = "0.9"
59+
hyper-staticfile = "0.9.6"
6060
indicatif = { version = "0.17.8", features = ["rayon"] }
6161
itertools = "0.12.1"
6262
libc = "0.2"

0 commit comments

Comments
 (0)