Skip to content

drop rustls-pemfile for rustls-pki-types pem api#83

Merged
fabracht merged 2 commits into
mainfrom
drop-rustls-pemfile
May 20, 2026
Merged

drop rustls-pemfile for rustls-pki-types pem api#83
fabracht merged 2 commits into
mainfrom
drop-rustls-pemfile

Conversation

@fabracht
Copy link
Copy Markdown
Contributor

Summary

  • Closes rustls-pemfile is deprecated #82. rustls-pemfile is flagged by RUSTSEC-2025-0134 as unmaintained; its functionality is now provided by rustls-pki-types::pem::PemObject, which CertificateDer and PrivateKeyDer already implement.
  • Removed the rustls-pemfile dependency and migrated all 11 call sites in transport/tls.rs, broker/tls_acceptor.rs, and tests/wss_alpn_integration.rs to PemObject::pem_slice_iter.
  • Collapsed the pkcs8 → rsa → ec key-loading fallback into one call — PrivateKeyDer::pem_slice_iter natively accepts all three section kinds.

Test plan

  • cargo check -p mqtt5 --all-features
  • cargo clippy --all-targets --workspace -- -D warnings -W clippy::pedantic
  • cargo test -p mqtt5 --tests (incl. tls_integration, tls_direct_config, wss_alpn_integration)
  • cargo tree and Cargo.lock confirm rustls-pemfile is gone from the dependency graph

@fabracht fabracht force-pushed the drop-rustls-pemfile branch from a326366 to ef9698e Compare May 20, 2026 17:07
@fabracht fabracht force-pushed the drop-rustls-pemfile branch from ef9698e to 6409d49 Compare May 20, 2026 17:14
@fabracht fabracht merged commit 23d177d into main May 20, 2026
15 checks passed
@fabracht fabracht deleted the drop-rustls-pemfile branch May 20, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustls-pemfile is deprecated

1 participant