4 releases
| 0.2.0-beta.1 | Feb 2, 2026 |
|---|---|
| 0.1.1-beta.1 | Feb 2, 2026 |
| 0.1.0-beta.1 | Feb 2, 2026 |
| 0.1.0-alpha.1 | Dec 27, 2025 |
#220 in Memory management
Used in 4 crates
170KB
3.5K
SLoC
◈ MEMKIT CORE ◈
[ DETERMINISTIC CPU ALLOCATION ENGINE ]
██████╗ ██████╗ ██████╗ ███████╗
██╔════╝██╔═══██╗██╔══██╗██╔════╝
██║ ██║ ██║██████╔╝█████╗
██║ ██║ ██║██╔══██╗██╔══╝
╚██████╗╚██████╔╝██║ ██║███████╗
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
"Predictable memory is the foundation of reliable systems."
The core engine of the Memkit ecosystem, providing thread-local arenas, object pools, and sub-nanosecond allocation logic.
◈ THE MEMKIT ADVANTAGE
| Feature | Standard Box |
Memkit Core | System Impact |
|---|---|---|---|
| Cost | O(Varies) | O(1) | Stable frame times |
| Locality | Random | Contiguous | SIMD/Cache efficient |
| Safety | Drop-based | Bulk Reset | Zero-cost cleanup |
| Threads | Contention | Lock-Free | Linear scaling |
| Debug | Standard | Sentinel | Hazard detection |
◈ SENTINEL MODE
Enable the sentinel feature for memory hardening.
[dependencies]
memkit = { version = "0.2.0-beta.1", features = ["sentinel"] }
┌─────────────────────────────────────────────────────────────────────────┐
│ ◆ POISONING │ Fills allocs with 0xAA and frees with 0xDD. Catch │
│ │ use-after-free instantly. │
├─────────────────────────────────────────────────────────────────────────┤
│ ◆ HAZARDS │ Runtime reporting of double-frees and cross-thread │
│ │ ownership violations. │
├─────────────────────────────────────────────────────────────────────────┤
│ ◆ AUDIT │ Verifies zero leaks on shutdown with detailed report. │
└─────────────────────────────────────────────────────────────────────────┘
◈ QUICK START
use memkit::{MkAllocator, MkConfig};
let alloc = MkAllocator::new(MkConfig::default());
loop {
alloc.begin_frame();
// O(1) Allocation - zero fragmentation
let buffer = alloc.frame_slice::<f32>(1024).unwrap();
let entity = alloc.frame_box(PhysicsEntity::new()).unwrap();
// Pool allocation for stable objects
let pool_obj = alloc.pool_box(Component::new()).unwrap();
alloc.end_frame(); // Bulk reset
}
◈ ECOSYSTEM
| Crate | Purpose | Status |
|---|---|---|
memkit |
Core engine | BETA 1.1 |
memkit-gpu |
GPU Buffer Management | BETA 1.1 |
memkit-co |
CPU↔GPU Synchronization | BETA 1.1 |
memkit-async |
Task-local Async Safety | BETA 1.1 |
◈ LICENSE
Licensed under the Mozilla Public License 2.0.
[ Part of the ◈ MEMKIT ◈ Ecosystem ]
Dependencies
~120–260KB