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.
- Host: GitHub
- URL: https://github.com/olback/mallocator
- Owner: olback
- Created: 2021-06-12T18:22:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-24T20:31:02.000Z (almost 5 years ago)
- Last Synced: 2024-11-19T18:58:30.387Z (over 1 year ago)
- Language: Rust
- Homepage: https://crates.io/crates/mallocator
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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];
}
```