#c #ffi #free-memory #memory-management

no-std mallocator

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

1 unstable release

0.1.0 Jun 24, 2021

#1054 in Embedded development

Download history 8/week @ 2024-07-19 150/week @ 2024-07-26 132/week @ 2024-08-02 63/week @ 2024-08-09 60/week @ 2024-08-16 39/week @ 2024-08-23 153/week @ 2024-08-30 153/week @ 2024-09-06 113/week @ 2024-09-13 114/week @ 2024-09-20 125/week @ 2024-09-27 67/week @ 2024-10-04 101/week @ 2024-10-11 76/week @ 2024-10-18 42/week @ 2024-10-25 24/week @ 2024-11-01

265 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