Crate libc_alloc[][src]

Expand description

A simple global allocator which hooks into libc. Useful when linking no_std + alloc code into existing embedded C code.

Uses posix_memalign for allocations, realloc for reallocations, and free for deallocations.

Example

use libc_alloc::LibcAlloc;

#[global_allocator]
static ALLOCATOR: LibcAlloc = LibcAlloc;

Structs

Global Allocator which hooks into libc to allocate / free memory.