heapless
scapegoat
heapless | scapegoat | |
---|---|---|
4 | 5 | |
1,387 | 236 | |
1.2% | - | |
8.7 | 0.0 | |
27 days ago | about 2 years ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
heapless
- """may_dangle""" stabilization
-
Rust: A Critical Retrospective
> we did not have Vec because we were no-std + stable so we literally had to use arrays
It's true that Vec isn't available in a no-std context, but don't think it follows that arrays are the only other option - see heapless for one example: https://github.com/japaric/heapless
I also agree with some of the ancestors: the post seems to say that the Rust language couldn't handle arrays with more than 32 elements, and (as someone who's written a fair bit of no-std Rust before const generic) that doesn't seem right. At first, this did seem awkward to me as well, but in practice I haven't found it to be a significant limitation. Was there a particular scenario where it wasn't feasible to wrap a >32 element array in your own type and implement Default on it?
-
Now that the long-awaited const generics (MVP) have come to stable in 1.51, what crates are going to gain the most from it?
It's happening
-
Writing a proposal to use Rust at work
heapless has both SPSC and MPMC channels that work on embedded
scapegoat
-
10-12x smaller executable footprint than `std::collections::BTreeMap` - accurate?
Woah that made a huge difference! Thanks for taking the time to try that out and type it up. Was able to retrace your steps and get the same 8.4KB result. I've updated the writeup again.
-
no_std dups
IndexMax is not used directly and the one that is used directly is dynamic. https://github.com/tnballo/scapegoat is closer, but, still does not take advantage of const (uses rebalancing)
What are some alternatives?
tinyvec - Just, really the littlest Vec you could need. So smol.
min-sized-rust - 🦀 How to minimize Rust binary size 📦
blisp - A statically typed Lisp like scripting programming language for Rust.
cortex-a - Low level access to Cortex-A processors
utils - Utility crates used in RustCrypto
bst-rs - Recursive & Iterative Binary Search Tree Implementations within Rust
regex-automata - A low level regular expression library that uses deterministic finite automata.
xargo - The sysroot manager that lets you build and customize `std`
cassette - A simple, single-future, non-blocking executor intended for building state machines. Designed to be no-std and embedded friendly.
option-block - A minimal utility Rust crate for small, fixed-size blocks of optional types.
biscuit - Biscuit research OS
bitfield-struct-rs - Procedural macro for bitfields.