heapless icon indicating copy to clipboard operation
heapless copied to clipboard

Heapless, `static` friendly data structures

Results 105 heapless issues
Sort by recently updated
recently updated
newest added

Having spent some time on creating a PR for Embassy that introduces a non-alloc MPSC, there was a question posed as to whether the MPSC would be a better fit...

Instead of having: ```rust pub struct Node { next: AtomicPtr, pub(crate) data: UnsafeCell, } ``` We could just use one location to store both things, since we don't need to...

The probing algorithms used in this crate for `IndexMap` are pretty rudimentary, and from my pretty unscientific benchmarks (basically just copying the benchmarks from the `hashbrown` crate, comparing `FnvHashMap` with...

enhancement

Some serialization formats distinguish between arrays of bytes and byte strings. One approach is to defer to `serde-bytes`, https://github.com/serde-rs/bytes/pull/18. An alternative is that `heapless` has a specialized `Vec` wrapper type,...

enhancement

This crate has a `deny(const_err)`. That is a no-op in current compilers, `const_err` is deny-by-default (and has been for years). In the near future, the lint will be [turned into...

The `split` [example](https://docs.rs/heapless/latest/heapless/spsc/index.html#examples) of `heapless::spsc` attempts to avoid the need for using a `Mutex` _as well as avoiding `static` scope for `Producer` and `Consumer` by using `unsafe` code: ``` fn...

If you create an AVR project using `cargo generate --git https://github.com/Rahix/avr-hal-template.git` and add a dependency on heapless (0.7.16) compilation triggers an error ``` error: cannot find macro `llvm_asm` in this...

Ideally we would be able to merge the iterators of `&(mut) DequeView` and `&(mut) Deque`, but this can't be done without a breaking change.

Reduce duplicated code by implementing traits for `Vec` and `VecView` using macros. Also add `inline` to functions that redirect to `VecView`.

skip-changelog