wackywendell / basicalloc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Basic Allocator

This package includes a home-grown memory allocator written entirely in Rust. It is simple, and meant primarily for educational purposes.

This crate is heavily commented and documented. See the documentation or the code itself for more details.

Development

Development can happen locally on an OSX or Linux machine, using the standard Rust frameworks. In addition, Docker can be used for emulating linux:

$ # Develop using the code mounted
$ docker build --target dev -t basicallocdev . && docker run -v `pwd`:/usr/src/basicalloc -it basicallocdev
[...]
root@0123456789ab:/usr/src/basicalloc# cargo test
[...]

Examples

Several examples live in the examples directory. These can be run with cargo:

$ cargo run --example grow_heap
$ cargo run --example hello_world
$ cargo run --release --example stress_test

About

License:MIT License


Languages

Language:Rust 96.6%Language:Dockerfile 3.4%