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

Open
MarcWeber opened this issue Apr 29, 2024 · 2 comments
Open

deserialize into allocator #711

MarcWeber opened this issue Apr 29, 2024 · 2 comments

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

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

No branches or pull requests

3 participants