Crate malloc_best_effort

Source
Expand description

Best effort memory allocator for Rust

Selects suitable allocator depending on target OS and architecture.

§Usage

use malloc_best_effort::BEMalloc;

#[global_allocator]
static GLOBAL: BEMalloc = BEMalloc::new();

§Feature flags

  • std (enabled by default) — enable std

Structs§

BEMalloc
A memory allocator that can be registered as the standard library’s default through the #[global_allocator] attribute.