#stack #place #sizeof

no-std thin-vec

A vec that takes up less space on the stack

17 releases

0.2.14 Mar 24, 2025
0.2.13 Dec 3, 2023
0.2.12 Feb 20, 2023
0.2.10 Dec 5, 2022
0.1.0 May 15, 2018

#69 in Data structures

Download history 64901/week @ 2024-12-10 58403/week @ 2024-12-17 47113/week @ 2024-12-24 53327/week @ 2024-12-31 66901/week @ 2025-01-07 66773/week @ 2025-01-14 64607/week @ 2025-01-21 62922/week @ 2025-01-28 86940/week @ 2025-02-04 86917/week @ 2025-02-11 96119/week @ 2025-02-18 91095/week @ 2025-02-25 84728/week @ 2025-03-04 93227/week @ 2025-03-11 96109/week @ 2025-03-18 81309/week @ 2025-03-25

374,779 downloads per month
Used in 354 crates (29 directly)

MIT/Apache

140KB
2K SLoC

Rust CI crates.io

thin-vec

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.

Dependencies

~160KB