8 releases

0.2.0 Dec 9, 2023
0.1.6 Dec 9, 2023
0.1.1 Nov 30, 2023

#373 in Embedded development

Download history 17/week @ 2024-02-16 1/week @ 2024-02-23 1/week @ 2024-03-01 42/week @ 2024-03-29 9/week @ 2024-04-05

51 downloads per month

BSD-3-Clause

12KB
174 lines

Nostd Structs (and Algorithms)

The purpose of this crate is to provide datastructures and algorithms that are useful in environments without std. This goes for embedded devices, no OS environments, WebAssembly, and code where you prefer stack allocation over heap.

The algorithms and datastructures themselves will be wide-ranging and fairly esoteric, but nontheless applicable.

This is project really created as a central place for community contributions. I will be working on this myself for the time being, but the intention is that this becomes quite bigger than it currently is.


lib.rs:

Nostd Structs contains data structures and algorithms that are intended to be used in a minimal environment.

This is useful for cases where you are compiling without access to the standard library, such as in embedded environments.

An additional benefit is that, since the memory allocators tend to be tied to the standard library, the data structures in this crate are stack allocated, and do not require a heap. This has performance benefits and leads to predictable memory usage, at the cost of not using memory dynamically.

No runtime deps