Rust, Post-Quantum Cryptography, and You
On December 2, 2026 the NSA sent out a release: NSA Advises Immediate Transition to Post-Quantum Cryptography to Protect National Security Systems, which was quickly followed by statements by CISA, The US Government, Mozilla, OpenAI, Anthropic, AWS, Google Chrome, Cloudflare, and others. The recommendation is to shorten any timelines around the transition to post-quantum cryptography (PQC). In accordance with the recommendations and our own planning we wanted to share with you how we are working to protect Rust and its ecosystem. We take this threat seriously.
For the majority of Rust users, post-quantum support in the ecosystem already exists and TLS libraries including rustls, openssl, and native-tls already support it. Most common crates already default to using one of these crates, which already support PQC in many configurations. (Please see the recommendations further down this blog post for current best practice here.)
We recommend you make sure the cryptographic library you are using supports post-quantum algorithms for your use case, keep it up to date, and watch for RustSec advisories which include security and maintenance advisories; recommended by integrating cargo-deny or cargo-audit into your CI. For more advanced use cases, you should investigate the maintenance and PQ algorithm support of your upstream dependencies for your needs.
Actions Taken
On December 2, 2026 the Rust Project was informed by the NSA announcement and security staff began reaching out to project members and other communities.
On December 3rd, 2026, the Rust Project (Rust programming language) and supported Ecosystem projects began accelerating post-quantum algorithm enablement. Rust Foundation staff are supporting Rust teams and projects in making the transition quickly. This work is ongoing and we will continue to update you as we expedite this transition.
Ongoing Work
We wanted to take the time to highlight some of the active work that the Rust Project teams are doing to already make progress on the transition.
Rust Distribution & Infrastructure
Trusted Publishing: JWT tokens from GitHub do not currently use PQC; however, the crates.io team is actively making changes to immediately support it when it is implemented.crates.io, index.crates.io, static.crates.io sites: All already support PQ, and will prefer it when available after the changes deployed today in crates.io: moves fastly cdn services to pqc #1379.crates.io Infrastructure:- Servers: We have updated to OpenSSL 3.5+
- Database: Work is ongoing to upgrade the database for PQC support
- Secrets: Secrets are stored in the database with AES256GCM which is quantum resistant
Supporting Infrastructure: The Rust Infrastructure team is actively making policy and implementation changes across Rust Infrastructure for PQ support.
Toolchain
cargo:- No past or current versions support PQC on Windows by default, as identified in Cargo cannot use PQC on Windows without manual configuration #17857
- All other platforms support and default to PQC for versions distributed via
rustupsince 1.89 (August, 2025)
rustup:rustuphas supported PQC since 1.28.0 (March, 2025)- Due to an oversight, versions of
rustupbetween 1.28.0 and 1.29.3 did not prioritize PQ key exchange algorithms over non-PQ algorithms when available. - No past versions of
rustuphave prioritized PQ above non-PQ algorithms when both are available. - The Rustup Team is working on a new release to enable PQ by default in 1.29.4 Release Planning #5302.
Rust Ecosystem
As part of our initial response to these statements, Rust Foundation security staff performed a preliminary analysis around what PQ support exists across top crates in the ecosystem to identify areas where migration or support is lacking. This list was compiled by analyzing the top 1000 crates, identifying cases where PQ is not available by default as of today, December 4th, 2026.
Risks Identified
hyper:hyper-rustlsnow defaults to PQC with the release ofrustls0.23.48 (December 3, 2026)rustls:- Has defaulted to PQ key exchange since 0.23.27 (May 2025); implemented via a default-enabled Cargo feature.
- While reviewing usage this week, we noticed that many downstreams set
default-features = falseand were unaware that PQ support should be enabled via theprefer-post-quantumfeature. - The rustls team released 0.23.48 which makes sure
rustlsalways prefers PQ key exchange algorithms, prefers safer key elliptic curve algorithms when PQ algorithms are not available, and deprecates theringcrypto provider, which lacks support for PQ algorithms.
reqwest: Supports PQC in version 0.13 via either the (default)rustlsfeature or thenative-tlsfeature. Version 0.12 also supported PQC whennative-tlswas enabled. Supports PQC in version 0.12+ via the default-enablednative-tlsfeature, and via bothnative-tlsandrustls(which is the new default) in version 0.13+.ring: Has no PQ support.quinn,quinn-proto: Usesringby default. Use therustls-aws-lc-rsfeature flag.native-tls:- PQC support is system dependent on most platforms, requiring OpenSSL 3.5+
- No PQ support on MacOS. The MacOS implementation uses Secure Transport API, which is deprecated and without PQC. Other platforms fall back on
opensslor operating system cryptography, which support PQ at newer versions.
ureq: Usesringby default. Use thenative-tlsorrustls-no-providerfeature flags.rcgen: Usesringby default. Use theaws_lc_rs(ML-DSA viaaws_lc_rs_unstable) feature flag.
Recommendations
- All downstream consumers of
rustlsupdate to 0.24.48 to address the default-enabled cargo feature. - Users of
rustlsuse theaws-lc-rs(default) orrustls-graviolaproviders via their feature flags. With more complex cryptographic needs, investigate your dependencies for PQ support. Third party providers are not maintained directly by therustlsteam and support may vary. - We recommend that all users of
ringmigrate to a PQ supporting library. - Users of crates leveraging
opensslshould make sure their projects are usingopenssl3.5+
We’ve also put together a cheat-sheet of quick one-liners you can use to check your project for potentially out of date or problematic dependencies. Having these in your dependences doesn’t necessarily mean you need to take action, but provides a starting point for further investigation.
| Check | Command |
|---|---|
rustls without prefer-post-quantum | cargo tree --workspace --prefix none -f "{p} {f}" 2>/dev/null | grep -E '^rustls v' | grep -vE '[ ,]prefer-post-quantum(,| |$)' | sed 's/ *(\*)$//' | sort -u |
rustls with ring enabled | cargo tree --workspace --prefix none -f "{p} {f}" 2>/dev/null | grep -E '^rustls v[^ ]+ ([^ ]*,)?ring(,| |$)|^rustls v0\.([0-9]|1[0-9]|2[01])\.' |
Other ring usage | cargo tree --workspace --prefix none -f "{p} {f}" | grep -E '^ring v' |
openssl-sys < 0.9.110 | cargo tree --workspace --prefix none -f "{p} {f}" | grep -E '^openssl-sys v0\.([0-8]\.[0-9]+|9\.([0-9]|[1-9][0-9]|10[0-9]))( |$)' |
| OpenSSL < 3.5 (static) | strings "<YOUR_BINARY>" | grep -m1 -E '^OpenSSL [0-9]+\.[0-9]+' | grep -E '^OpenSSL ([0-2]|3\.[0-4])\.' |
Final Thoughts
This is an ongoing effort and we are taking all steps necessary to follow NSA guidelines for the Rust Project and ecosystem. The Rust Foundation is actively working with the Rust Project and is actively reaching out to projects in the Rust ecosystem to ensure that Rust continues to be a safe, secure choice. We will post another update as we continue to mitigate this threat. We invite the authors of ecosystem crates to contact us via the #security-chat channel on the Rust Zulip to update this blog post as they address PQC support or to request our assistance.
Thanks to Josh Triplett, David Wood, Dirkjan Ochtman, and Mark Rousskov for reviewing drafts of this blog post, and for their continued help and support in planning.