Hacker News new | ask | show | jobs
by CameronNemo 2543 days ago
The alloc crate stabilization should provide serde with improved options. Currently they maintain two json modules, one that does heap allocation and one that does not.

https://serde.rs/no-std.html

https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html#the-a...

1 comments

Wouldn’t the non-allocating module remain useful and the allocating one just get lowered to depend on alloc rather than std?