$ smallvec
v1.15.2'Small vector' optimization: store up to a small number of items on the stack
Latest Update Summary
Crate
Name: smallvec New version: 2.0.0-alpha.12 Release date: 2025-11-16T20:52:31.762924Z
Crate readme
Short description Small vector optimization for Rust: store up to a small number of items on the stack
Long description smallvec provides a 'small vector' optimization for Rust, allowing the storage of a limited number of items on the stack, automatically moving to the heap once that limit is exceeded. This crate is in version 2.0, which is not yet ready for release.
Features • smallvec
Code Examples Basic usage
use smallvec::{SmallVec, smallvec};
let mut v: SmallVec<i32, 4> = smallvec![1, 2, 3, 4];
v.push(5);
v[0] = v[1] + v[2];
v.sort();
Links • https://docs.rs/smallvec/ • https://github.com/servo/rust-smallvec/releases
https://docs.rs/smallvec/ https://api.github.com/repos/servo/rust-smallvec/releases/223701841
Release info
Release version:
Release description
Code Examples
Patch update: 1.15.1 → 1.15.2
$ DOWNLOADS TREND
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add smallvecOr add to Cargo.toml: smallvec = "1.15.2"