A Vec That Has a Smaller size_of
Rust
177
213 commits
updated Sep 16, 2026
ThinVec is a Vec that stores its length and capacity inline, making it take up less space.
Currently this crate mostly exists to facilitate Gecko (Firefox) FFI, but it works perfectly fine as a native Rust library as well.
(top 30 of 34)
82 commits
22 commits
21 commits
18 commits
Gankra/thin-vec
servo/rust-smallvec
"Small vector" optimization for Rust: store up to a small number of items on the stack
1,737
backtracking/vector
16
fjall-rs/byteview
Thin immutable zero-copy byte slice
75
typst/ecow
Compact, clone-on-write vector and string.
320
servo/heapsize
In support of measuring heap allocations in Rust programs.
103
slightlyoutofphase/staticvec
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const…
264
serde-rs/bytes
Wrapper types to enable optimized handling of &[u8] and Vec<u8>
384
100.0%