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

Add a buffering Stream trait #182

Merged
merged 20 commits into from
Dec 20, 2023
Merged

Add a buffering Stream trait #182

merged 20 commits into from
Dec 20, 2023

Conversation

KodrAus
Copy link
Collaborator

@KodrAus KodrAus commented Dec 6, 2023

This PR introduces a new crate: sval_nested, which is home to a new Stream API that's recursive instead of flattened. It's now used by sval_serde to map sval to serde, and should enable integration with valuable. It would also be a friendlier target API for visitor use-cases like extracting all sequence elements from an arbitrary value.

The existing Stream API in sval is still the basis of this library and the intended target for formats and most use cases. The nested variant here is intended for cases where you have to buffer and pass whole values around.

@KodrAus KodrAus marked this pull request as ready for review December 20, 2023 05:27
@KodrAus KodrAus merged commit 65dd466 into main Dec 20, 2023
48 checks passed
@KodrAus KodrAus deleted the feat/buffer-stream branch December 20, 2023 08:35
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.

1 participant