NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #32 most downloaded on crates.io
'Small vector' optimization: store up to a small number of items on the stack
Latest stable
1.16.6
Last release 4 days ago
18 Nov 2026
Ships unpredictably
gaps range from 8 days to 7 months
Most releases are documented
notes for 42 of 52 stable releases
20 versions withdrawn
withdrawn after publishing
12 years old
90 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Replace into_raw_parts/from_raw_parts with into_parts/from_parts by @GauravPawar101 in #821
missing_docs lint from src/lib.rs to Cargo.toml by @lanangptraa in #858Full Changelog: v2.0.0-beta.4...v2.0.0-beta.5
Your coding agent can read these notes before it upgrades. Set up the MCP server →
chore: Deprecate Smallvec::extend_from_slice in favor of extend by @GauravPawar101 in #812
Full Changelog: v2.0.0-beta.3...v2.0.0-beta.4
fix: remove deprecation warning by @alejandro-vaz in #729
Vec capacity doesn't grow uncontrollably. by @pedrodesu in #737Full Changelog: v2.0.0-beta.2...v2.0.0-beta.3
Deprecate into_vec and into_boxed_slice in favor of Into by @Ashutosh-Panda2004 in #685
= Global to public structs with A: Allocator by @bolshoytoster in #634reserve derive from try_reserve by @bolshoytoster in #659Index and IndexMut traits by @mikwielgus in #679Full Changelog: v2.0.0-beta.1...v2.0.0-beta.2
Remove the use of the deprecated smallvec macro by @TDecking in #589
mod spec_traits into a specialization.rs file by @pedrodesu in #575clippy to CI and made minor code improvements by @pedrodesu in #576PartialEq implementations by @TDecking in #588smallvec macro by @TDecking in #589SmallVec::into_raw_parts by @TDecking in #591src/iterators/ folder and move rayon.rs (closes #598) by @rushikeshgarad2024-dev in #600--no-default-features by @pedrodesu in #610benches/bench.rs by @pedrodesu in #611Full Changelog: v2.0.0-alpha.13...v2.0.0-beta.1
Deprecate smallvec! and smallvec_inline! by @bolshoytoster in https://github.com/servo/rust-smallvec/pull/445
extract_if no longer requires a feature gate. by @mbrubeck in https://github.com/servo/rust-smallvec/pull/383smallvec! in the inline case by @bolshoytoster in https://github.com/servo/rust-smallvec/pull/424RawSmallVec (and its fields) public only under feature = "internals". (v2) by @zachs18 in https://github.com/servo/rust-smallvec/pull/348serde_json with serde_test by @alejandro-vaz in https://github.com/servo/rust-smallvec/pull/434TryFrom<SmallVec<T, N>> for [T; M] by @bolshoytoster in https://github.com/servo/rust-smallvec/pull/482rustfmt.toml guidelines by @alejandro-vaz in https://github.com/servo/rust-smallvec/pull/490Format for SmallVec by @alejandro-vaz in https://github.com/servo/rust-smallvec/pull/472lib.rs refactor by @alejandro-vaz in https://github.com/servo/rust-smallvec/pull/516is_zst helper by @alejandro-vaz in https://github.com/servo/rust-smallvec/pull/533extend_fallback optimization by @fereidani in https://github.com/servo/rust-smallvec/pull/567Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.12...v2.0.0-alpha.13
v2.0.0-alpha.13 Pre-release
Pre-release
Compare
Fix typo in comment by @waywardmonkeys in https://github.com/servo/rust-smallvec/pull/372
core::error::Error by @TDecking in https://github.com/servo/rust-smallvec/pull/380extract_if feature by @TDecking in https://github.com/servo/rust-smallvec/pull/381Vec functionality by @TDecking in https://github.com/servo/rust-smallvec/pull/382smallvec![]. by @nnethercote in https://github.com/servo/rust-smallvec/pull/385serde dependency to serde_core for v2 by @paolobarbolini in https://github.com/servo/rust-smallvec/pull/393Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.11...v2.0.0-alpha.12
v2.0.0-alpha.12 Pre-release
Pre-release
Compare
Implement MallocSizeOf for SmallVec (v2) by @nicoburns in https://github.com/servo/rust-smallvec/pull/369
MallocSizeOf for SmallVec (v2) by @nicoburns in https://github.com/servo/rust-smallvec/pull/369bytes::BufMut for SmallVec (v2) by @BugenZhao in https://github.com/servo/rust-smallvec/pull/371Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.10...v2.0.0-alpha.11
v2.0.0-alpha.11 Pre-release
Pre-release
Compare
Impl Send/Sync for IntoIter by @mbrubeck in https://github.com/servo/rust-smallvec/pull/368
Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.9...v2.0.0-alpha.10
v2.0.0-alpha.10 Pre-release
Pre-release
Compare
Fix a bug in collect/from_iter/extend (#365).
collect/from_iter/extend (#365).Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.8...v2.0.0-alpha.9
v2.0.0-alpha.9 Pre-release
Pre-release
Compare
[v2] Update to Rust 2021 Edition. by @zachs18 in https://github.com/servo/rust-smallvec/pull/359
Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.7...v2.0.0-alpha.8
v2.0.0-alpha.8 Pre-release
Pre-release
Compare
[Breaking Change] replace write feature with std feature by @JarvisCraft in https://github.com/servo/rust-smallvec/pull/356
write feature with std feature by @JarvisCraft in https://github.com/servo/rust-smallvec/pull/356Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.6...v2.0.0-alpha.7
v2.0.0-alpha.7 Pre-release
Pre-release
Compare
Fix test test_hash by @lexoooooo in https://github.com/servo/rust-smallvec/pull/351
test_hash by @lexoooooo in https://github.com/servo/rust-smallvec/pull/351Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.5...v2.0.0-alpha.6
Implement From<[T; M]> for SmallVec for all M, N (v2) by @zachs18 in https://github.com/servo/rust-smallvec/pull/338
From<[T; M]> for SmallVec<T, N> for all M, N (v2) by @zachs18 in https://github.com/servo/rust-smallvec/pull/338DrainFilter with ExtractIf by @NaokiM03 in https://github.com/servo/rust-smallvec/pull/341Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.3...v2.0.0-alpha.5
Implement From<[T; M]> for SmallVec for all M, N (v2) by @zachs18 in https://github.com/servo/rust-smallvec/pull/338
From<[T; M]> for SmallVec<T, N> for all M, N (v2) by @zachs18 in https://github.com/servo/rust-smallvec/pull/338Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.3...2.0.0-alpha.4
Port feature drain_filter (#292) to v2 by @matzemathics in https://github.com/servo/rust-smallvec/pull/333
Hash trait for SmallVec by @hsanzg in https://github.com/servo/rust-smallvec/pull/337Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.2...v2.0.0-alpha.3
Correctly handle Vec with zero capacity in from_vec by @matzemathics in https://github.com/servo/rust-smallvec/pull/332
Vec with zero capacity in from_vec by @matzemathics in https://github.com/servo/rust-smallvec/pull/332Full Changelog: https://github.com/servo/rust-smallvec/compare/v2.0.0-alpha.1...v2.0.0-alpha.2
Nothing published for this version
fix: point v1 repository metadata to smallvec/smallvec by @himanchalkaushale in #869
Full Changelog: v1.16.5...v1.16.6
ci: port v2 CI to v1 by @alejandro-vaz in #853
Port fuzzer changes from PR #737 to v1 by @GauravPawar101 in #753
Full Changelog: v1.16.3...v1.16.4
Port new fuzzer to v1 by @bolshoytoster in #678
Full Changelog: v1.16.2...v1.16.3
Backport v2’s retain implementation to v1 by @charliermarsh in #596
Full Changelog: v1.16.1...v1.16.2
Speed up push by expanding triple_mut by @bolshoytoster in #557
Full Changelog: v1.16.0...v1.16.1
Include debug_metadata/*.natvis in the published crate to fix debugger_visualizer/docs.rs build by @teddytennant in https://github.com/servo/rust-smal
Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.15.2...v1.16.0
Exclude development script from cargo packaging by @weiznich in https://github.com/servo/rust-smallvec/pull/397
Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.15.1...v1.15.2
Shrink code produced by smallvec![]. by @nnethercote in https://github.com/servo/rust-smallvec/pull/386
smallvec![]. by @nnethercote in https://github.com/servo/rust-smallvec/pull/386Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.15.0...v1.15.1
Fix typos by @waywardmonkeys in https://github.com/servo/rust-smallvec/pull/373
Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.14.0...v1.15.0
Implement MallocSizeOf for SmallVec (v1) by @nicoburns in https://github.com/servo/rust-smallvec/pull/370
MallocSizeOf for SmallVec (v1) by @nicoburns in https://github.com/servo/rust-smallvec/pull/370Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.13.2...v1.14.0
Add more tests for UB by @workingjubilee in https://github.com/servo/rust-smallvec/pull/346
Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.13.1...v1.13.2
Remove the optional get-size feature, to avoid a cyclic dependency (#335).
get-size feature, to avoid a cyclic dependency (#335).Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.13.0...v1.13.1
Impl get_size::GetSize (behind feature flag) by @amandasaurus in https://github.com/servo/rust-smallvec/pull/335
Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.12.0...v1.13.0
Add from_const_with_len_unchecked by @Expyron in https://github.com/servo/rust-smallvec/pull/329
from_const_with_len_unchecked by @Expyron in https://github.com/servo/rust-smallvec/pull/329Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.11.2...v1.12.0
Automated testing improvements by @waywardmonkeys in https://github.com/servo/rust-smallvec/pull/322 and https://github.com/servo/rust-smallvec/pull/3
doc for feature = "const_generics" by @mkroening in https://github.com/servo/rust-smallvec/pull/328Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.11.1...v1.11.2
Annotate SmallVec::insert_from_slice with #[inline] by @sffc in https://github.com/servo/rust-smallvec/pull/312
#[inline] by @sffc in https://github.com/servo/rust-smallvec/pull/312push and insert b @emilio in https://github.com/servo/rust-smallvec/pull/315--generate-link-to-definition option when building on docs.rs by @GuillaumeGomez in https://github.com/servo/rust-smallvec/pull/304Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.11.0...v1.11.1
Testing and documentation fixes by @striezel in https://github.com/servo/rust-smallvec/pull/294 and https://github.com/servo/rust-smallvec/pull/293
NonNull pointer in heap version by @AngelicosPhosphoros in https://github.com/servo/rust-smallvec/pull/298drain_filter method by @L0uisc in https://github.com/servo/rust-smallvec/pull/292Full Changelog: https://github.com/servo/rust-smallvec/compare/v1.10.0...v1.11.0
Add optional NatVis debugger visualization (#286).
Array::size as inline (#289).Add retain_mut as an alias for retain, for compatibility with std::Vec (#283).
retain_mut as an alias for retain, for compatibility with std::vec::Vec (#283).Optimize inserts at the end of the vector (#282).
Add optional support for the arbitrary crate (#275).
arbitrary crate (#275).new_const and from_const constructors for creating a SmallVec in const contexts. Requires Rust 1.51 and the optional const_new feature.
new_const and from_const constructors for creating a SmallVec in const contexts. Requires Rust 1.51 and the optional const_new feature. (#265)Fix a possible buffer overflow in insert_many (#252, #254).
insert_many (#252, #254).The "union" feature is now compatible with stable Rust 1.49 (#248, #247).
"union" feature is now compatible with stable Rust 1.49 (#248, #247).Improve performance of push (#241).
push (#241).Add support for more array sizes between 17 and 31 (#234).
append method (#237).insert_many no longer leaks elements if the provided iterator panics (#213).
insert_many no longer leaks elements if the provided iterator panics (#213).const_generics and specialization features are updated to work with the most recent nightly Rust toolchain (#232).Don't allocate when the size of the element type is zero. Allocating zero bytes is undefined behavior.
Add try_reserve, try_reserve_exact, and try_grow methods (#214).
try_reserve, try_reserve_exact, and try_grow methods (#214).Add a new unstable const_generics feature (#204).
const_generics feature (#204).slice.to_smallvec() convenience method (#203).IntoIter now implements Debug (#196).
IntoIter now implements Debug (#196).smallvec! macro is now easier to use in no_std contexts where the vec! macro isn't automatically imported (#198).Added new method SmallVec::into_boxed_slice (#190).
SmallVec::into_boxed_slice (#190).IntoIter::as_slice and as_mut_slice (#182).IntoIter now implements Clone (#192).[breaking change] Use MaybeUninit to avoid possible undefined behavior (#162, #170).
MaybeUninit to avoid possible undefined behavior (#162, #170).drain method now takes a range argument, just like the standard Vec::drain (#145).unreachable function and replace it with the new standard unreachable_unchecked function (#164).no_std by default. This crate depends only on core and alloc by default. If the optional write feature is enabled then it depends on std so that SmallVec<[u8;_]> can implement the std::io::Write trait (#173).VecLike trait (#165).SmallVec<[T; 96]> (#163).FusedIterator (#172).SliceIndex trait (#166).Fix a possible buffer overflow in insert_many (#252, #254).
insert_many (#252, #254).Use the maybe-unit crate in place of soon-to-be-deprecated std::uninitialized (#180). When built with Rust 1.36 or later, this fixes a source of undef…
maybe-unit crate in place of soon-to-be-deprecated std::mem::uninitialized (#180). When built with Rust 1.36 or later, this fixes a source of undefined behavior. It also fixes deprecation warnings in Rust 1.39 and later, and test failures when run in MIRI. In Rust 1.35 and earlier it provides some safety improvements but does not completely eliminate undefined behavior. (However, we are not aware of any cases where the undefined behavior causes bugs in practice in those toolchains.)Move code using default fn into its own module (#161).
default fn into its own module (#161).The unstable alloc feature is no longer needed. This crate can now build with the std feature disabled on stable Rust 1.36 or later (#159).
alloc feature is no longer needed. This crate can now build with the std feature disabled on stable Rust 1.36 or later (#159).Fix a bug in extend with certain iterators (#150).
extend with certain iterators (#150).grow method (#151, #152).Remove dependency on unreachable crate
unreachable crate (#140)Don't leak memory if an iterator panics during extend
extend (#137)union feature for better forward compatibility (#135)Add an optional feature to use the unstable may_dangle attribute (#133).
may_dangle attribute (#133).One column per quarter.