|
|
|
|
|
by dunkelheit
2384 days ago
|
|
Worth noting that support for custom allocators in standard collections is not finalized yet: https://github.com/rust-lang/rust/issues/32838 The (awesome) bumpalo crate that you link to gets around this by providing ported implementations of Vec and String, but if you need e.g. a custom-allocated HashMap, you need to implement it yourself. |
|
Creating an allocator is inherently possible. Using that allocator with the rest of the ecosystem is currently not stable, as you point out.
As a sometimes Rust embedded developer, I look forward to both parameterized allocators and fallible allocation.