Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Nov 8, 2025

The PEM reader does on-the-fly decoding and therefore can't borrow from its input at all.

Having it impl Reader<'static> allows it to produce outputs that outlive its input buffer. In theory this means Cow<'static, T> should impl DecodePem.

cc @dishmaker

The PEM reader does on-the-fly decoding and therefore can't borrow from
its input at all.

Having it impl `Reader<'static>` allows it to produce outputs that
outlive its input buffer. In theory this means `Cow<'static, T>` should
impl `DecodePem`.
@tarcieri tarcieri merged commit 02fdf7d into master Nov 8, 2025
107 checks passed
@tarcieri tarcieri deleted the der/pem-reader-static branch November 8, 2025 00:23
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.

2 participants