planck-noalloc
Stack-allocated, no_std collections for Rust.
Provides fixed-size alternatives to heap-allocated data structures, useful in embedded systems, kernels, interrupt handlers, or anywhere heap allocation is unavailable.
Collections
ArrayVec<T, N>— Fixed-capacity vector backed by a stack arrayRingBuf<T, N>— Fixed-capacity circular buffer for FIFO operations
Usage
[]
= "0.1"
use ArrayVec;
let mut vec = new;
vec.push;
vec.push;
assert_eq!;
use RingBuf;
let mut buf = new;
buf.push;
buf.push;
assert_eq!;
Features
| Feature | Default | Description |
|---|---|---|
std |
Yes | Enables Error trait implementations |
To use in a no_std environment:
[]
= { = "0.1", = false }
License
MIT