Update Rust crate rocket to 0.5.0-rc.3
This MR 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
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<Build>
are now#[must_use]
, not allRocket<P>
. - 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
forBox<T: Responder + Sized>
. - Implemented
FromForm
forArc<T>
. - Implemented
Fairing
forArc<dyn Fairing>
.
Updated Dependencies
- Updated
syn
to2
. - Updated
diesel
to2.0
. - Updated
sqlx
to0.6
. - Updated
notify
to5.0
. - Updated
criterion
to0.4
. - Updated
deadpool-redis
to0.11
. - Updated
normpath
from to1
. - Updated
cookie
to0.17
. - Replaced
atty
withis-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.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.