• jemaloc

      1. [dependencies]
      2. jemallocator = "0.3.2"
      1. #[global_allocator]
      2. static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
    • mimalloc

      1. [dependencies]
      2. mimalloc = { version = "0.1.17", default-features = false }
      1. #[global_allocator]
      2. static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
    • leak-detect-allocator

      1. [dependencies]
      2. leak-detect-allocator = {git = "https://github.com/lynnux/leak-detect-allocator.git"}
      1. #[global_allocator]
      2. static LEAK_TRACER: LeakTracerDefault = LeakTracerDefault::new();