Policy & Community

Rust Project accelerates Post-Quantum Cryptography transition following NSA advisory

Key Takeaway

The Rust Project and Foundation are expediting the adoption of post-quantum algorithms across the toolchain, infrastructure, and core ecosystem crates.

Summary

Following an urgent advisory from the NSA on December 2, 2026, regarding the immediate need to transition to post-quantum cryptography (PQC), the Rust Project has initiated an accelerated enablement program. This response aims to protect the Rust ecosystem from future quantum computing threats by updating core infrastructure, toolchains, and widely used libraries.

The effort spans multiple layers of the stack, from the crates.io distribution infrastructure and OpenSSL updates on servers to specific toolchain behaviors in rustup and cargo. While many high-level crates already possess PQC capabilities through libraries like rustls, the Rust Foundation is actively addressing gaps in dependency defaults and platform-specific limitations, such as those found on Windows and macOS.

Technical implementation of PQC in the Rust stack

  • Infrastructure Updates: The crates.io ecosystem has migrated its Fastly CDN services to PQC, updated backend servers to OpenSSL 3.5+, and continues work on upgrading databases for full PQC support.
  • Toolchain Discrepancies: While rustup has supported PQC since March 2025, a version oversight (1.28.0 to 1.29.3) failed to prioritize PQ key exchange; a fix is planned for version 1.29.4. Additionally, cargo currently lacks default PQC support on Windows.
  • Library Ecosystem Status: The rustls library (v0.23.48) now enforces a preference for PQ key exchange and deprecates the ring provider, which lacks PQC support. Conversely, the ring crate remains without native PQ support.
  • Dependency Risks: Critical crates like quinn, ureq, and rcgen currently default to using the ring provider; users are advised to switch to feature flags like rustls-aws-lc-rs or native-tls to achieve quantum resistance.
  • Platform Limitations: PQC support via native-tls is restricted by the underlying OS; specifically, macOS lacks support due to its reliance on the deprecated Secure Transport API.

Why it matters

This transition is critical for maintaining the long-term security of the Rust ecosystem against quantum-enabled adversaries. Software engineers must audit their dependency trees—specifically looking for crates defaulting to 'ring'—and update to rustls 0.23.48 to ensure their applications are utilizing post-quantum key exchange.

What to do

  • Ensure your cryptographic library supports post-quantum algorithms and keep it up to date.
  • Integrate cargo-deny or cargo-audit into your CI to watch for RustSec advisories.
  • If using quinn or quinn-proto, switch to the rustls-aws-lc-rs feature flag to avoid the ring provider.
  • If using rustls, enable the prefer-post-quantum feature if you have set default-features = false.

Original reference: rustfoundation.org →