Skip to main content

Rocket 0.5.2

Release Date: October 23, 2026

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 — rustls moves to 0.23.46 with tokio-rustls 0.26.6 and rustls-webpki 0.103.16 so distrusted intermediate certificates are rejected (RUSTSEC-2026-0382); time moves to 0.3.47 to fix a stack overflow when parsing RFC 2822 dates with deeply nested comments (RUSTSEC-2026-0009); tokio moves to 1.54.1 to fix a soundness issue in Interval (RUSTSEC-2026-0384); and hyper moves to 1.12 with h2 at 0.4.20 or newer to stop excessive memory use from empty HTTP/2 frames (RUSTSEC-2026-0258).
  • atomic replaced with ref-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-Type now 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's file, string, or bytes limits. UTF-8 byte-order marks are now preserved, which means numeric fields with a leading BOM no longer parse.
  • No bodies on 204 and 304 — Those responses no longer send a body, and 204 no longer sends Content-Length or Transfer-Encoding. HEAD and 304 keep known body sizes in Content-Length, unknown sizes are no longer written as zero, and Content-Length is never combined with Transfer-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.
  • Status constants in patterns — The constants can now be used in match patterns (issue #2844), which previously required a guard or an if chain.
  • Route macro warnings gone — Routes declared inside functions or macros no longer trigger non_local_definitions warnings on recent compilers.
  • MSRV is now Rust 1.89 — rocket, rocket_http, and rocket_codegen all 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-IP unless 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-pemfile is replaced by rustls-pki-types 1.15.1, syn moves to 3, devise to 0.5, pear to 0.3, uri! macro names are deterministic, and the unused rand dependency is gone.

Update with cargo update -p rocket after raising rust-version to 1.89 in your toolchain file.

Other Versions

We use cookies for ads and analytics.