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

deserialize into allocator #711

Closed
MarcWeber opened this issue Apr 29, 2024 · 3 comments
Closed

deserialize into allocator #711

MarcWeber opened this issue Apr 29, 2024 · 3 comments
Labels

Comments

@MarcWeber
Copy link

I read that Rust nightly introduces allocators. There are some arena allocators like bumpalo. So eventually decode should be passed an allocator ? In my case I read millions of [u8] into bumpalo. Not important for me to fix it right now.

@adamreichold
Copy link

I think that instead of special casing allocators, there should be something like Serde's DeserializeSeed for stateful decoding where the state could for example be an allocator.

@VictorKoenders
Copy link
Contributor

There's #710 which might help with this

Copy link

stale bot commented Jul 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 1, 2024
@stale stale bot closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants