osom_lib_alloc/
lib.rs

1//! Allocator traits, optionally implementing std allocator if enabled through `std_alloc` feature.
2#![deny(warnings)]
3#![warn(clippy::all, clippy::pedantic)]
4#![allow(
5    clippy::needless_return,
6    clippy::redundant_field_names,
7    clippy::unreadable_literal,
8    clippy::inline_always,
9    clippy::module_name_repetitions
10)]
11#![no_std]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13#![cfg_attr(docsrs, allow(unused_attributes))]
14
15use osom_lib_macros::reexport_if_feature;
16
17mod traits;
18pub use traits::*;
19
20#[cfg(feature = "std_alloc")]
21extern crate alloc;
22
23reexport_if_feature!("std_alloc", std_allocator);