Good luck to all people who are going to try implementing allocators!
Last time I tried, even the standard containers were giving different layouts to allocate and deallocate.
Also as a bonus, you get to put another template parameter to all of your containers!
Yet, in the lang adoption game, many who were looking at Zig thanks to native support for allocators will now re-look at Rust to solve their problem.
> Last time I tried
For the benefit of the reader, this was two years ago.
The OP references updates made in Rust 1.100, released three weeks ago.
do those of us who come from a c++ background this all looks oddly familiar and equally painful
> Last time I tried, even the standard containers were giving different layouts to allocate and deallocate.
Do you have some concrete examples? I couldn't reproduce this but maybe I'm looking in the wrong places.