Make sure you're using Rust nightly.
Add this to your to Cargo.toml
:
[dependencies] mmalloc = "0.1"
Import the crate in your main file:
extern crate mmalloc;
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.