Skip to content

Use malloc() and free() for memory management in Rust. Do not use in critical systems since there are no null checks on malloc() returns.

Notifications You must be signed in to change notification settings

olback/mallocator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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];
}

About

Use malloc() and free() for memory management in Rust. Do not use in critical systems since there are no null checks on malloc() returns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages