Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

der: use Reader<'a> as input for Decode::decode #633

Merged
merged 1 commit into from
May 4, 2022

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented May 4, 2022

Implements decoding generically in terms of the Reader trait, similar to what #611 did for encoding.

This approach can enable 1-pass on-the-fly PEM decoding for DecodeOwned types (although that will require some additional work beyond what's in this PR).

@tarcieri tarcieri force-pushed the der/use-reader-in-decode-traits branch 4 times, most recently from ea29be3 to fd40fd7 Compare May 4, 2022 18:05
Implements decoding generically in terms of the `Reader` trait, similar
to what #611 did for encoding.

This approach can enable 1-pass on-the-fly PEM decoding for
`DecodeOwned` types (although that will require some additional work
beyond what's in this PR).
@tarcieri tarcieri force-pushed the der/use-reader-in-decode-traits branch from fd40fd7 to 8c3ab7a Compare May 4, 2022 18:17
@tarcieri tarcieri marked this pull request as ready for review May 4, 2022 18:17
@tarcieri tarcieri merged commit 7f8da23 into master May 4, 2022
@tarcieri tarcieri deleted the der/use-reader-in-decode-traits branch May 4, 2022 19:06
@tarcieri tarcieri mentioned this pull request May 8, 2022
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