scapegoat
Safe, fallible, embedded-friendly ordered set/map via a scapegoat tree. Validated against BTreeSet/BTreeMap. (by tnballo)
option-block
A minimal utility Rust crate for small, fixed-size blocks of optional types. (by BastiDood)
Our great sponsors
scapegoat | option-block | |
---|---|---|
5 | 1 | |
236 | 0 | |
- | - | |
0.0 | 1.7 | |
about 2 years ago | about 1 year ago | |
Rust | Rust | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
scapegoat
Posts with mentions or reviews of scapegoat.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-14.
-
10-12x smaller executable footprint than `std::collections::BTreeMap` - accurate?
Agreed, switching to tinyvec (2.X, breaking) and per-instance storage size (1.X, non-breaking) are currently open issues.
This crate is #[forbid(unsafe_code)]. A future version will also have all dependencies be #[forbid(unsafe_code)]. Safety bugs in the standard library may or may not be found in the future (there have been CVEs in the past).
Tried to evaluate memory footprint, in terms of executable code bytes stored in the .text section, please see the writeup here.
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.
option-block
Posts with mentions or reviews of option-block.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-21.
-
Dipping Toes into Unsafe Code
View on GitHub
What are some alternatives?
When comparing scapegoat and option-block you can also consider the following projects:
heapless - Heapless, `static` friendly data structures
min-sized-rust - 🦀 How to minimize Rust binary size 📦
cortex-a - Low level access to Cortex-A processors
xargo - The sysroot manager that lets you build and customize `std`
bst-rs - Recursive & Iterative Binary Search Tree Implementations within Rust
bitfield-struct-rs - Procedural macro for bitfields.