# rust-embedded/heapless

Heapless, `static` friendly data structures

Repository: https://github.com/rust-embedded/heapless
Canonical: https://ross.abutalabs.com/products/heapless
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust, no-std, data-structures
Last push: 2026-08-08T17:59:14+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 56, longevity 100
- inputs: {"age_days": 3468, "days_push": 25, "days_rel": 134, "gap_med": 114, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2014, forks 251 (observed 2026-08-28T04:06:05.380174+00:00)

## What it is
A Rust crate providing `static`-friendly data structures (vectors, queues, maps, etc.) that don't require dynamic memory allocation. It is designed for `no_std` and embedded environments where a heap allocator is unavailable or undesirable.

## Use cases
- use data structures without a heap allocator in embedded Rust
- store collections in static variables in no_std code
- avoid dynamic memory allocation on microcontrollers
- implement fixed-capacity buffers and queues for real-time systems
- write heap-free Rust for bare-metal targets

## When to choose
- you're writing no_std or embedded Rust and need vectors, queues, or maps without a heap
- you need deterministic, allocation-free data structures for real-time or safety-critical code
- you want widely adopted, well-maintained static data structures (100M+ crate downloads)

## When to avoid
- you're writing std Rust where dynamic allocation is fine and std collections are more flexible
- you need growable structures without fixed capacity limits
- you need data structures not offered by the crate's fixed-size collection set

## Facets
- artifact type: library
- maturity: stable
- function: data-generation, concurrency, developer-tools
- domain: embedded-systems, programming-languages
- platform: rust, embedded, cross-platform
- tags: no-std, no-heap, data-structures, static-allocation, embedded-rust, algorithms

## Member repositories
- rust-embedded/heapless (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:05.380174+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:00:50.582613+00:00, confidence not recorded.
  - readme: https://github.com/rust-embedded/heapless (fetched 2026-08-28T04:06:05.380174+00:00, sha 1ce816ccc884)
  - registry_crates: https://crates.io/api/v1/crates/heapless (fetched 2026-08-29T10:40:43.466820+00:00, sha d83125190d98)
- Data as of 2026-08-30T08:39:29.467469+00:00.
