[](https://github.com/TimDiekmann/alloc-compose/actions?query=workflow%3ATest+event%3Apush+branch%3Amaster)
[](https://codecov.io/gh/TimDiekmann/alloc-compose)
[](https://timdiekmann.github.io/alloc-compose/alloc_compose/index.html)
[](https://docs.rs/alloc-compose)
[](https://crates.io/crates/alloc-compose)

Composable allocator structures for plugging together more powerful allocators.
`alloc-compose` relies on [`AllocRef`] as allocator trait. Until `AllocRef` has been stabilized, this crate requires a nightly compiler.
The design of composable allocators is inspired by
[`std::allocator` Is to Allocation what `std::vector` Is to Vexation][vid] by Andrei
Alexandrescu and the [Phobos Standard Library][phobos] of the [D Programming Language][D].
[`AllocRef`]: https://doc.rust-lang.org/nightly/core/alloc/trait.AllocRef.html
[vid]: https://www.youtube.com/watch?v=LIb3L4vKZ7U
[phobos]: https://github.com/dlang/phobos
[D]: https://dlang.org/
License
-------
Alloc-Compose is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See [LICENSE-APACHE](https://github.com/TimDiekmann/alloc-compose/blob/master/LICENSE-APACHE) and [LICENSE-MIT](https://github.com/TimDiekmann/alloc-compose/blob/master/LICENSE-MIT) for details.