Skip to content

Commit 3521083

Browse files
Update Rust crate http to v1 (#1678)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [http](https://redirect.github.com/hyperium/http) | workspace.dependencies | major | `0.2.12` -> `1.3.1` | --- ### Release Notes <details> <summary>hyperium/http (http)</summary> ### [`v1.3.1`](https://redirect.github.com/hyperium/http/blob/HEAD/CHANGELOG.md#131-March-11-2025) [Compare Source](https://redirect.github.com/hyperium/http/compare/v1.3.0...v1.3.1) - Fix validation that all characters are UTF-8 in URI path and query. ### [`v1.3.0`](https://redirect.github.com/hyperium/http/blob/HEAD/CHANGELOG.md#130-March-11-2025) [Compare Source](https://redirect.github.com/hyperium/http/compare/v1.2.0...v1.3.0) - Allow most UTF-8 characters in URI path and query. - Fix `HeaderMap::reserve()` to allocate sufficient capacity. ### [`v1.2.0`](https://redirect.github.com/hyperium/http/blob/HEAD/CHANGELOG.md#120-December-3-2024) [Compare Source](https://redirect.github.com/hyperium/http/compare/v1.1.0...v1.2.0) - Add `StatusCode::TOO_EARLY` constant for 425 status. - Loosen `TryFrom<HashMap>` for `HeaderMap` to work with any state generic. - Change `Builder` methods to use `TryInto` instead of `TryFrom` arguments. - Make `StatusCode::as_u16` a `const` function. - Fix `Method` parsing to allow `#$%&'` characters. - Fix `HeaderName` parsing to reject `"` characters. - Fix off by 1 error in `Method::from_bytes` that could cause extra allocations. ### [`v1.1.0`](https://redirect.github.com/hyperium/http/blob/HEAD/CHANGELOG.md#110-March-4-2024) [Compare Source](https://redirect.github.com/hyperium/http/compare/v1.0.0...v1.1.0) - Add methods to allow trying to allocate in the `HeaderMap`, returning an error if oversize instead of panicking. - Add `Extensions::get_or_insert()` method. - Implement `From<Uri>` for `uri::Builder`. - Fix `HeaderName::from_lowercase` that could allow NUL bytes in some cases. ### [`v1.0.0`](https://redirect.github.com/hyperium/http/blob/HEAD/CHANGELOG.md#100-November-15-2023) [Compare Source](https://redirect.github.com/hyperium/http/compare/v0.2.12...v1.0.0) - Implement `Clone` for `Request`, `Response`, and `Extensions`. This breaking change requires that all extensions now implement `Clone`. - Add a default-on `std` feature. Disabling it currently is not supported. - Fix MIRI warnings in `HeaderMap::iter()`. </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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/oxidecomputer/crucible). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 2ede6f1 commit 3521083

File tree

2 files changed

+23
-34
lines changed

2 files changed

+23
-34
lines changed

Cargo.lock

+22-33
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
@@ -51,7 +51,7 @@ expectorate = "1.1.0"
5151
futures = "0.3"
5252
futures-core = "0.3"
5353
hex = "0.4"
54-
http = "0.2.12"
54+
http = "1.3.1"
5555
httptest = "0.16.3"
5656
human_bytes = "0.4.3"
5757
humantime = "2.1.0"

0 commit comments

Comments
 (0)