kerkour.com discusses eliminating Rust heap allocations for no_std HTTP stack
The author explores techniques for eliminating heap allocations in Rust to support no_std embedded platforms with limited RAM and high-performance servers prone to memory fragmentation. By replacing dynamic collections with stack-allocated or fixed-capacity data structures like heapless, bytes, and smallvec, developers can avoid heap fragmentation and improve performance. The author notes that designing low-allocation APIs for complex protocols remains challenging and advises caution before using such libraries in production. Open article →