Skip to main content

commonware_allocator/
lib.rs

1//! Allocate and manage memory.
2//!
3//! Allocators usually read their tuning (how long freed memory is retained,
4//! how much is reserved up front, when memory returns to the operating
5//! system) from environment variables at startup. This crate sets that
6//! configuration in the binary and exposes allocator statistics for export as
7//! metrics.
8
9#![doc(
10    html_logo_url = "https://commonware.xyz/imgs/rustdoc_logo.svg",
11    html_favicon_url = "https://commonware.xyz/favicon.ico"
12)]
13
14commonware_macros::stability_scope!(ALPHA, cfg(feature = "mimalloc") {
15    pub mod mimalloc;
16});