safety-dance icon indicating copy to clipboard operation
safety-dance copied to clipboard

Audit arrayvec

Open Shnatsel opened this issue 6 years ago • 1 comments

https://crates.io/crates/arrayvec

Vec, but backed by a stack-allocated array instead of a heap allocation. Effectively 5,000 downloads/day.

(crates.io numbers are higher - 23,000 downloads/day, but 18,000 of those are due to crossbeam-epoch depending on it and I've removed the dependency in latest git).

Plenty of unsafe, and while that's more or less expected of a low-level data structure, there's still a lot of things that could go wrong (looking at you, SmallVec), so this could really use a soundness audit.

Shnatsel avatar Nov 01 '19 18:11 Shnatsel

100% safe alternative (for some use cases) now available: https://crates.io/crates/tinyvec

Shnatsel avatar Jul 14 '20 01:07 Shnatsel