An open API service indexing awesome lists of open source software.

https://github.com/olback/mallocator

Use malloc() and free() for memory management in Rust. Do not use in critical systems since there are no null checks on malloc() returns.
https://github.com/olback/mallocator

Last synced: 9 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Mallocator

```rust
#![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];
}
```