somehowchris / rocket-validation

A guard to validate data received by rocket via validator
16 stars 5 forks source link

fix(deps): update rust crate rocket to 0.5.0-rc.3 - abandoned #22

Closed renovate[bot] closed 9 months ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
rocket (source) dependencies patch 0.5.0-rc.2 -> 0.5.0-rc.3

Release Notes

SergioBenitez/Rocket ### [`v0.5.0-rc.3`](https://togithub.com/SergioBenitez/Rocket/blob/HEAD/CHANGELOG.md#Version-050-rc3-Mar-23-2023) [Compare Source](https://togithub.com/SergioBenitez/Rocket/compare/v0.5.0-rc.2...v0.5.0-rc.3) #### Major Features and Improvements - Added a [`max_blocking`][max_blocking] configuration parameter. The parameter sets a limit on the number of threads used by blocking tasks. - Added an [`ip_header`][ip_header] "real IP" header configuration parameter. The parameter allows modifying the header that Rocket attempts to use to retrieve the "real IP" address of the client via `Request` methods like [`Request::client_ip()`][Request::client_ip()]. Additionally, the change allows disabling the use of any such header entirely. - A [`pool()`][pool()] method is emitted by \[`rocket_sync_db_pools`] for code-generated pools. The method returns an opaque reference to a type that can be used to retrieve pooled connections outside of a request handling context. - Raw binary form field data can be retrieved using the `&[u8]` form guard. - Data guards are now eligible \[sentinels]. #### General Improvements - Final launch messages are now *always* logged, irrespective of profile. - Only functions that return `Rocket` are now `#[must_use]`, not all `Rocket

`. - Fixed mismatched form field names in errors under certain conditions in \[`FromForm`] derive. - The \[`FromForm`] derive now collects *all* errors that occur. - Data pools are now gracefully shutdown in \[`rocket_sync_db_pools`]. - Added [`Metadata::render()`][Metadata::render()] in \[`rocket_dyn_templates`] for direct template rendering. - Rocket salvages more information from malformed requests for error catchers. - The `cookie` `secure` feature is now properly conditionally enabled. - Data before encapsulation boundaries in TLS keys is allowed and ignored. - Support for TLS keys in SEC1 format was added. - Rocket now warns when a known secret key is configured. - A panic that could occur on shutdown in `rocket_sync_db_pools` was fixed. ##### Known Media Types - Added `MP3`: `audio/mpeg`. - Added `CBZ`: `application/vnd.comicbook+zip`, extension `.cbz`. - Added `CBR`: `application/vnd.comicbook-rar`, extension `.cbr`. - Added `RAR`: `application/vnd.rar`, extension `.rar`. - Added `EPUB`: `application/epub+zip`, extension `.epub`. - Added `OPF`: `application/oebps-package+xml`, extension `.opf`. - Added `XHTML`: `application/xhtml+xml`, extension `.xhtml`. ##### Trait Implementations - Implemented `Responder` for `Box`. - Implemented `FromForm` for `Arc`. - Implemented `Fairing` for `Arc`. ##### Updated Dependencies - Updated `syn` to `2`. - Updated `diesel` to `2.0`. - Updated `sqlx` to `0.6`. - Updated `notify` to `5.0`. - Updated `criterion` to `0.4`. - Updated `deadpool-redis` to `0.11`. - Updated `normpath` from to `1`. - Updated `cookie` to `0.17`. - Replaced `atty` with `is-terminal`. #### Infrastructure - UI tests are now allowed to fail by the CI to avoid false negatives. - Fixed many typos, errors, and broken links throughout docs and examples. - The GitHub CI workflow was updated to use maintained actions. [`Metadata::render()`]: https://api.rocket.rs/v0.5-rc/rocket_dyn_templates/struct.Metadata.html#method.render [`pool()`]: https://api.rocket.rs/v0.5-rc/rocket_sync_db_pools/example/struct.ExampleDb.html#method.pool [`Request::client_ip()`]: https://api.rocket.rs/v0.5-rc/rocket/request/struct.Request.html#method.client_ip [`max_blocking`]: https://api.rocket.rs/v0.5-rc/rocket/struct.Config.html#structfield.max_blocking [`ip_header`]: https://api.rocket.rs/v0.5-rc/rocket/struct.Config.html#structfield.ip_header


Configuration

šŸ“… Schedule: Branch creation - At any time (no schedule defined), 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 this update again.



This PR has been generated by Mend Renovate. View repository job log here.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -4.05 :warning:

Comparison is base (42c7e55) 17.60% compared to head (a805718) 13.55%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #22 +/- ## ========================================== - Coverage 17.60% 13.55% -4.05% ========================================== Files 4 4 Lines 1761 2265 +504 ========================================== - Hits 310 307 -3 - Misses 1451 1958 +507 ``` [see 1 file with indirect coverage changes](https://app.codecov.io/gh/somehowchris/rocket-validation/pull/22/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christof+Weickhardt)

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

renovate[bot] commented 1 year ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

āš  Warning: custom changes will be lost.

renovate[bot] commented 1 year ago

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.