Skip to main content

alloc_checked/
lib.rs

1#![cfg_attr(not(test), cfg_attr(feature = "no_std", no_std))]
2#![feature(allocator_api)]
3#![cfg_attr(not(doctest), doc = include_str!("../README.md"))]
4
5extern crate alloc;
6extern crate core;
7
8pub mod claim;
9pub mod try_clone;
10pub mod vec;
11pub mod vec_deque;
12
13#[cfg(test)]
14pub(crate) mod testing;
15
16#[cfg(test)]
17#[global_allocator]
18static GLOBAL: testing::GlobalAllocTestGuardAllocator = testing::GlobalAllocTestGuardAllocator;