attachable-slab-allocator 0.1.0

A high-performance, $O(1)$, Master-Slave slab allocator designed for `no_std` environments, kernels, and embedded systems. This library provides fixed-size memory management with RAII safety while remaining completely agnostic of the underlying memory provider.
Documentation
//! # Locks Module
//!
//! This module provides the synchronization infrastructure for the Slab Allocator.
//!
//! In the Master-Slave architecture, the lock resides in the **Master Slab** and
//! protects the entire hierarchy, including all associated Slave Slabs.
//!
//! Choosing the right lock:
//! - **[`SpinLock`]**: Ideal for multi-threaded environments where contention is low.
//! - **[`NoLock`]**: Best for single-threaded environments (e.g., certain embedded systems)
//!   to remove synchronization overhead entirely.

mod lock_trait;
pub mod nolock;
pub mod spinlock;

#[doc(inline)]
pub use lock_trait::LockTrait;
#[doc(inline)]
pub use nolock::NoLock;
#[doc(inline)]
pub use spinlock::SpinLock;