piece/lib.rs
1#![no_std]
2#![cfg_attr(not(feature = "stable"), feature(allocator_api))]
3#![warn(clippy::all, clippy::std_instead_of_core, clippy::cargo)]
4#![doc = include_str!("../README.md")]
5
6extern crate alloc as alloc_crate;
7
8#[cfg(feature = "boxed")]
9pub mod boxed;
10
11#[cfg(feature = "vec")]
12pub mod vec;
13
14mod alloc;
15mod chain_allocator;
16mod linear_allocator;
17
18pub use chain_allocator::ChainAllocator;
19pub use linear_allocator::LinearAllocator;