#static #no-heap

no-std heapless

static friendly data structures that don’t require dynamic memory allocation

53 releases

0.9.3 Apr 30, 2026
0.9.2 Nov 12, 2025
0.9.1 Aug 20, 2025
0.9.0 Apr 28, 2025
0.1.0 Apr 27, 2017

#10 in Memory management

Download history 1819480/week @ 2026-03-27 1886152/week @ 2026-04-03 2016632/week @ 2026-04-10 2099279/week @ 2026-04-17 2240650/week @ 2026-04-24 2391350/week @ 2026-05-01 2715809/week @ 2026-05-08 2895623/week @ 2026-05-15 2617152/week @ 2026-05-22 2827863/week @ 2026-05-29 2933965/week @ 2026-06-05 2937681/week @ 2026-06-12 2849000/week @ 2026-06-19 2865021/week @ 2026-06-26 2833298/week @ 2026-07-03 3193620/week @ 2026-07-10

12,265,381 downloads per month
Used in 6,088 crates (965 directly)

MIT/Apache

595KB
12K SLoC

crates.io crates.io

heapless

static friendly data structures that don't require dynamic memory allocation

This project is developed and maintained by the libs team.

Documentation

Change log

Tests

$ # run all
$ cargo test --features serde

$ # run only for example histbuf tests
$ cargo test histbuf --features serde

Formatting

Like most Rust projects, we use rustfmt to keep the formatting of code consistent. However, we make use of cecertain options that are currently only available in the nightly version:

$ cargo +nightly fmt --all

License

Licensed under either of

at your option.

MSRV Policy

This crate is guaranteed to compile with the latest two stable releases of Rust. For example, if the latest stable Rust release is 1.70, then this crate is guaranteed to compile with Rust 1.69 and 1.70.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~120–670KB
~12K SLoC