[][src]Crate libc_alloc

A simple global allocator for Rust which hooks into libc. Useful in no_std + alloc contexts.

Uses posix_memalign for allocations, and free for deallocations.

Example

use libc_alloc::LibcAlloc;

#[global_allocator]
static ALLOCATOR: LibcAlloc = LibcAlloc;

Structs

LibcAlloc

Global Allocator which uses malloc and free under the hood.