Rocket 0.5.2
Let's not get carried away. Rocket 0.5.2, published October 23, 2026, is the first release of the framework since 0.5.1 in May 2024, and two and a half years later it is almost entirely a dependency and security release. The single crate covered is rocket itself at 0.5.2: four advisories are resolved, several long-standing bugs are fixed, and the minimum supported Rust version moves. If you were hoping for the async-first 0.6 line, this is not it.
- four RustSec advisories closed —
rustlsmoves to 0.23.46 withtokio-rustls0.26.6 andrustls-webpki0.103.16 so distrusted intermediate certificates are rejected (RUSTSEC-2026-0382);timemoves to 0.3.47 to fix a stack overflow when parsing RFC 2822 dates with deeply nested comments (RUSTSEC-2026-0009);tokiomoves to 1.54.1 to fix a soundness issue inInterval(RUSTSEC-2026-0384); andhypermoves to 1.12 withh2at 0.4.20 or newer to stop excessive memory use from empty HTTP/2 frames (RUSTSEC-2026-0258). atomicreplaced withref-swap— The swap fixes undefined behaviour that could occur when reading a request's matched route, so this one is worth taking even if you do not use TLS.- Multipart binary corruption fixed — Fields without a
Content-Typenow preserve their original bytes instead of being mangled by text decoding (issue #2934). Fields with a file name are parsed as data, and fields without one are parsed as values when their contents are valid UTF-8 and as binary data otherwise, subject to the receiving guard'sfile,string, orbyteslimits. UTF-8 byte-order marks are now preserved, which means numeric fields with a leading BOM no longer parse. - No bodies on
204and304— Those responses no longer send a body, and204no longer sendsContent-LengthorTransfer-Encoding.HEADand304keep known body sizes inContent-Length, unknown sizes are no longer written as zero, andContent-Lengthis never combined withTransfer-Encoding. - TLS misconfiguration now fails loudly — Mismatched certificates and private keys abort launch instead of starting a broken listener, and mutual TLS requires a non-empty CA certificate store even when client authentication is optional.
Statusconstants in patterns — The constants can now be used inmatchpatterns (issue #2844), which previously required a guard or anifchain.- Route macro warnings gone — Routes declared inside functions or macros no longer trigger
non_local_definitionswarnings on recent compilers. - MSRV is now Rust 1.89 —
rocket,rocket_http, androcket_codegenall require 1.89, up from the 1.75-era floor of 0.5.1. Check your CI images before bumping. - Proxy warning in the docs — Documentation now states that clients can spoof
X-Real-IPunless every request passes through a trusted proxy that overwrites the header, which is the kind of note that should have been there two years ago. - Internal churn —
rustls-pemfileis replaced byrustls-pki-types1.15.1,synmoves to 3,deviseto 0.5,pearto 0.3,uri!macro names are deterministic, and the unusedranddependency is gone.
Update with cargo update -p rocket after raising rust-version to 1.89 in your toolchain file.