Investigate implementing a Rust allocator wrapping tor_malloc
We should look into implementing the Rust alloc::allocator::Alloc
trait as a wrapper around tor_malloc
as a way to have a cleaner allocator interface in Rust moving forward (which still works with our current legacy C code).
This is what the Rust code in Firefox has done, and the alloc
crate is supposed to stabilised "soon" (as in, within the next six months) because FF is using it.