Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.08 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.08 KB

liballoc_hoard - Use Hoard as rust's allocator

This library allows users to use Hoard instead of either jemalloc or libc's malloc when building rust binaries and shared libraries.

Additional crate information is available here, and the idea behind this library is the Custom Allocotors section of the Rust book.

Usage

Simply add

alloc_hoard = "0.4"

To the dependencies of your crate in a project's Cargo.toml file, and then in a library or program add:

extern crate alloc_hoard;

To use Hoard for to satisfy all allocations for both the rust runtime and your program/library.

Licensing

The code in this repository is derived from liballoc_jemalloc and liballoc_system from the rust repository, and as such falls under either the MIT or Apache v2 licenses. Hoard itself is licensed under the GPLv2, so that also applies when linking against liballoc_hoard.