Skip to content

Add an alloc feature & a generic Value type #98

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

Open
zeenix opened this issue Mar 7, 2025 · 0 comments
Open

Add an alloc feature & a generic Value type #98

zeenix opened this issue Mar 7, 2025 · 0 comments

Comments

@zeenix
Copy link

zeenix commented Mar 7, 2025

Creating a separate issue for this from the points I made here and here. To summarize, a generic Value type would be super useful to have but it will require allocations and hence I understand why it's currently a non-goal. However, to make the most out of Rust enums (after that is added), people will have to enable alloc feature of serde and IMO that sort of beats the point of resisting addition of an alloc feature to this crate.

So I'm suggesting addition of an optional alloc feature along with a generic Value type. I would most likely be able to provide a PR for this, if maintainers show interest.

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

1 participant