If you're manually calling malloc in Rust, your code is almost certainly wrong. It might be called as an implementation detail when you create new objects, but std can generally be used as if it were managed automatically.
I'm using malloc as synecdoche for all forms of allocation, including Arc<Box<T>> stuff.
I'm using malloc as synecdoche for all forms of allocation, including Arc<Box<T>> stuff.