alloc_hoard 0.3.0

use Hoard as rust's allocator
Documentation

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.3"

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.