#c #ffi

no-std mallocator

Use malloc() and free() for memory management in Rust

1 unstable release

0.1.0 Jun 24, 2021

#1442 in Embedded development

22 downloads per month

MIT/Apache

3KB

Mallocator

#![no_std]
#![feature(default_alloc_error_handler)]

use mallocator::Mallocator;

#[global_allocator]
static A: Mallocator = Mallocator;

fn my_fn_that_requires_heap() {
    let v = vec![1, 2, 3];
}

No runtime deps