NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #2975 most downloaded on crates.io
a std Vec wrapper assuring that it has at least 1 element
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 6 weeks to 1.6 years
Most releases are documented
notes for 15 of 17 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
17 releases · first in 2018
Reduced minimal rust version to 1.71.1
- Added len_nonzero.
len_nonzero.Fix package.rust-version in Cargo.toml
One column per quarter.
package.rust-version in Cargo.tomlIncreased minimal rust version to 1.74.
{try_,}mapped_{ref,mut}Vec
try_reservetry_reserve_exactshrink_tospare_capacity_mutextend_from_withinretain_mutimpl<T, const N: usize> TryFrom<Vec1<T>> for Box<[T; N]>impl<T, const N: usize> TryFrom<&[T; N]> for Vec1<T> where T: Cloneimpl<T, const N: usize> TryFrom<&mut [T; N]> for Vec1<T> where T: Clone_nonzero implementations
truncate_nonzeroresize_with_nonzeroresize_nonzero{try_,}mapped_{ref,mut}.Vec
try_reservetry_reserve_exactshrink_tospare_capacity_mutextend_from_withinretain_mutimpl<T, const N: usize> TryFrom<Vec1<T>> for Box<[T; N]>impl<T, const N: usize> TryFrom<&[T; N]> for Vec1<T> where T: Cloneimpl<T, const N: usize> TryFrom<&mut [T; N]> for Vec1<T> where T: Clone_nonzero implementations
truncate_nonzeroresize_with_nonzeroresize_nonzeroImproved documentation by using doc_auto_cfg on docs.rs.
doc_auto_cfg on docs.rs.Increased minimal rust version to 1.57.
reduce, reduce_ref, reduce_mut.smallvec1_inline!.SmallVec1::from_array_const().Increased minimal rust version to 1.56.
from_vec_push and from_vec_insert constructors.TryFrom for [T; N] for Vec1<T>/SmallVec1<T> using const generic.deprecated the try_ prefix usage as it created ambiguities with other potential try_ versions (like try and don't panic if out of bounds or try and do…
try_ prefix usage as it created ambiguities withtry_ versions (like try and don't panic if out ofVec1.splice() which caused the code to returnSize0Error in a very specific edge case where it shouldVec.splice()Added the split_off_first and split_off_last methods.
split_off_first and split_off_last methods.Updated project to edition="2018" (not that this is a purely internal change and doesn't affect the API interface or minimal supported rustc version)
edition="2018" (not that this isminimal rust version is now 1.34
TryFrom is no longer feature gatedvec1![] now allows trailing , in all casesSize0Error now no longer has a customstd::error::Error::description() implementation.Cargo.tomlcargo fmtimpl Default for Vec1 where T: Default
New trait impl:
New Into impl for following types:
New manual proxy methods:
New Into impl for following types:
New TryFrom impl for following types:
Deprecated from_vec as it doesn't return a error type as error.
try_from_vec which returns a Result<Vec1<T>, Size0Error>.from_vec as it doesn't return a error type as error.unstable-nightly-try-from-impl feature which adds a TryFrom<Vec<T>> implementation.Addead a serde feature implementing Serialize/Deserialize.
serde feature implementing Serialize/Deserialize.Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →