#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

#1130 in Embedded development

Download history 105/week @ 2024-09-28 70/week @ 2024-10-05 123/week @ 2024-10-12 55/week @ 2024-10-19 45/week @ 2024-10-26 23/week @ 2024-11-02 50/week @ 2024-11-09 25/week @ 2024-11-16 46/week @ 2024-11-23 33/week @ 2024-11-30 32/week @ 2024-12-07 20/week @ 2024-12-14 3/week @ 2024-12-21 38/week @ 2024-12-28 107/week @ 2025-01-04 128/week @ 2025-01-11

277 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