smallvec
'Small vector' optimization: store up to a small number of items on the stack
1.15.2
1.1B downloads/mo
#32 most downloaded on crates.io
servo/rust-smallvec
What this package is like to depend on
Last release 2 months ago
11 Jun 2026
Release timing varies
gaps range from 2 weeks to 7 months
Rarely documented
notes for 4 of 45 stable releases
20 versions withdrawn
withdrawn after publishing
11 years old
77 releases · first in 2015
2 releases in the last 12 months
see the full history below
Release timeline
77 releases · Apr 2015 to Jun 2026Releases
latest 60 of 77-
2.0.0-alpha.1216 Nov 2025 pre-releaseRelease notes
Open source →What's Changed
- Fix typo in comment by @waywardmonkeys in #372
- Constant new SmallVec<T, N> for arrays smaller than N by @otcova in #377
- v2: Bump MSRV to 1.83 by @mbrubeck in #378
- Unconditionally implement
core::error::Errorby @TDecking in #380 - Update the
extract_iffeature by @TDecking in #381 - Add missing
Vecfunctionality by @TDecking in #382 - Shrink code produced by
smallvec![]. by @nnethercote in #385 - Rework specialization by @TDecking in #384
- Switch
serdedependency toserde_corefor v2 by @paolobarbolini in #393 - Fix: SmallVec::leak() to panic on inline storage (GHSA-5h7v-3586-wm8c) by @ksj1230
New Contributors
- @ksj1230 made their first contribution in GHSA-5h7v-3586-wm8c
- @otcova made their first contribution in #377
- @TDecking made their first contribution in #380
- @paolobarbolini made their first contribution in #393
Full Changelog: v2.0.0-alpha.11...v2.0.0-alpha.12
-
2.0.0-alpha.1120 Mar 2025 pre-releaseRelease notes
Open source →What's Changed
- Implement
MallocSizeOffor SmallVec (v2) by @nicoburns in #369 - feat: impl
bytes::BufMutforSmallVec(v2) by @BugenZhao in #371
New Contributors
- @BugenZhao made their first contribution in #371
Full Changelog: v2.0.0-alpha.10...v2.0.0-alpha.11
- Implement
-
2.0.0-alpha.1015 Jan 2025 pre-release -
2.0.0-alpha.917 Dec 2024 pre-releaseRelease notes
Open source →- Fix a bug in
collect/from_iter/extend(#365).
Full Changelog: v2.0.0-alpha.8...v2.0.0-alpha.9
- Fix a bug in
-
2.0.0-alpha.810 Dec 2024 pre-releaseRelease notes
Open source →What's Changed
- [v2] Update to Rust 2021 Edition. by @zachs18 in #359
- Micro optimize extend by @arthurprs in #362
- Implement spare_capacity_mut by @DaniPopes in #364
New Contributors
- @DaniPopes made their first contribution in #364
Full Changelog: v2.0.0-alpha.7...v2.0.0-alpha.8
-
2.0.0-alpha.727 Jul 2024 pre-releaseRelease notes
Open source →What's Changed
- [Breaking Change] replace
writefeature withstdfeature by @JarvisCraft in #356 - Add PartialEq impls to mirror the stdlib by @SUPERCILEX in #358
New Contributors
- @JarvisCraft made their first contribution in #356
- @SUPERCILEX made their first contribution in #358
Full Changelog: v2.0.0-alpha.6...v2.0.0-alpha.7
- [Breaking Change] replace
-
2.0.0-alpha.610 May 2024 pre-releaseNothing published for this version
-
2.0.0-alpha.523 Mar 2024 pre-releaseNothing published for this version
-
2.0.0-alpha.403 Mar 2024 pre-releaseNothing published for this version
-
2.0.0-alpha.320 Jan 2024 pre-releaseNothing published for this version
-
2.0.0-alpha.214 Jan 2024 pre-releaseNothing published for this version
-
2.0.0-alpha.107 Nov 2023 pre-releaseNothing published for this version
-
1.15.211 Jun 2026Release notes
Open source →What's Changed
- Exclude development script from cargo packaging by @weiznich in #397
- Fix use-after-free in DrainFilter::keep_rest for SmallVec with capacity 0 by @Shnatsel in #407
- Work around rustc 1.93 perf regression with MaybeUninit by @glandium in #410
New Contributors
Full Changelog: v1.15.1...v1.15.2
-
1.15.106 Jun 2025Release notes
Open source →What's Changed
- Shrink code produced by
smallvec![]. by @nnethercote in #386
Full Changelog: v1.15.0...v1.15.1
- Shrink code produced by
-
1.15.005 Apr 2025Release notes
Open source →What's Changed
- Fix typos by @waywardmonkeys in #373
- Implement bincode2 encode/decode support for smallvec v1 by @markbt in #375
New Contributors
Full Changelog: v1.14.0...v1.15.0
-
1.14.015 Feb 2025Release notes
Open source →What's Changed
- Implement
MallocSizeOffor SmallVec (v1) by @nicoburns in #370
New Contributors
- @nicoburns made their first contribution in #370
Full Changelog: v1.13.2...v1.14.0
- Implement
-
1.13.220 Mar 2024Nothing published for this version
-
1.13.119 Jan 2024Nothing published for this version
-
1.13.018 Jan 2024 withdrawnNothing published for this version
-
1.12.013 Jan 2024Nothing published for this version
-
1.11.209 Nov 2023Nothing published for this version
-
1.11.120 Sep 2023Nothing published for this version
-
1.11.005 Jul 2023Nothing published for this version
-
1.10.002 Oct 2022Nothing published for this version
-
1.9.029 Jun 2022Nothing published for this version
-
1.8.124 Jun 2022Nothing published for this version
-
1.8.014 Jan 2022Nothing published for this version
-
1.7.028 Sep 2021Nothing published for this version
-
1.6.108 Jan 2021Nothing published for this version
-
1.6.031 Dec 2020Nothing published for this version
-
1.5.105 Dec 2020Nothing published for this version
-
1.5.017 Nov 2020Nothing published for this version
-
1.4.211 Aug 2020Nothing published for this version
-
1.4.106 Jul 2020Nothing published for this version
-
1.4.023 Apr 2020 withdrawnNothing published for this version
-
1.3.008 Apr 2020Nothing published for this version
-
1.2.029 Jan 2020Nothing published for this version
-
1.1.020 Dec 2019Nothing published for this version
-
1.0.003 Nov 2019Nothing published for this version
-
0.6.1408 Jan 2021Nothing published for this version
-
0.6.1305 Nov 2019Nothing published for this version
-
0.6.1230 Oct 2019Nothing published for this version
-
0.6.1128 Oct 2019Nothing published for this version
-
0.6.1010 Jun 2019Nothing published for this version
-
0.6.917 Feb 2019 withdrawnNothing published for this version
-
0.6.819 Jan 2019 withdrawnNothing published for this version
-
0.6.729 Nov 2018 withdrawnNothing published for this version
-
0.6.616 Nov 2018 withdrawnNothing published for this version
-
0.6.522 Aug 2018 withdrawnNothing published for this version
-
0.6.406 Aug 2018 withdrawnNothing published for this version
-
0.6.319 Jul 2018 withdrawnNothing published for this version
-
0.6.214 Jun 2018 withdrawnNothing published for this version
-
0.6.123 Apr 2018 withdrawnNothing published for this version
-
0.6.001 Dec 2017 withdrawnNothing published for this version
-
0.5.120 Jul 2018Nothing published for this version
-
0.5.024 Oct 2017 withdrawnNothing published for this version
-
0.4.520 Jul 2018Nothing published for this version
-
0.4.425 Sep 2017 withdrawnNothing published for this version
-
0.4.321 Aug 2017 withdrawnNothing published for this version
-
0.4.211 Aug 2017 withdrawnNothing published for this version