bounded-vec
Non-empty rust Vec wrapper with type guarantees on lower and upper bounds for items quantity.
0.9.0
6.5M downloads/mo
#3951 most downloaded on crates.io
ergoplatform/bounded-vec
What this package is like to depend on
Last release 1 years ago
05 Jun 2025
Ships unpredictably
gaps range from 4 weeks to 2.4 years
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
10 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
10 releases · May 2021 to Jun 2025Releases
latest 10-
0.9.005 Jun 2025Release notes
Open source →Added
- prevent out of bound construction and define empty vs nonempty at compile time
=======
-
0.8.002 Dec 2024 -
0.7.101 Aug 2022Release notes
Open source →[0.7.1] - 2022-08-01
Added
- fix
Abrbitraryimpl to honor upper(U) and lower(L) bounds;
- fix
-
0.7.026 Jul 2022Release notes
Open source →[0.7.0] - 2022-07-26
Added
Arbitraryimpl behindarbitraryfeature;BoundedVec::opt_empty_vec()- emptyVec<T>toOption<BoundedVec<T>>;Option<BoundedVec>::to_vec()to getVec<T>;
Release notes
Open source →Added
Abrbitraryimpl behindarbitraryfeature;BoundedVec::opt_empty_vec()- emptyVec<T>toOption<BoundedVec<T>>;Option<BoundedVec>::to_vec()to getVec<T>;
-
0.6.021 Apr 2022 -
0.5.014 Oct 2021 -
0.4.004 Aug 2021Release notes
Open source →[0.4.0] - 2021-08-04
Added
AsRef,AsMut,Hash,Ord,PartialOrdimpl for BoundedVec;Errorimpl for BoundedVecOutOfBounds;
Release notes
Open source →Added
AsRef,AsMut,Hash,Ord,PartialOrdimpl for BoundedVec;Errorimpl for BoundedVecOutOfBounds;
-
0.3.009 Jun 2021Release notes
Open source →[0.3.0] - 2021-06-09
Added
IntoIterimpl forBoundedVec;BoundedVec::enumerated(return new instance with indices included);BoundedVec::split_last(return last and all the rest of the elements);
Release notes
Open source →Added
IntoIterimpl forBoundedVec;BoundedVec::enumerated(return new instance with indices included);BoundedVec::split_last(return last and all the rest of the elements);
-
0.2.011 May 2021Release notes
Open source →[0.2.0] - 2021-05-11
Added
BoundedVec::try_mapped,BoundedVec::try_mapped_ref;
-
0.1.010 May 2021Release notes
Open source →[0.1.0] - 2021-05-10
- initial
BoundedVecimplementation includingmapped(),first(),last(), to/from array/Vec;
Release notes
Open source →- initial
BoundedVecimplementation includingmapped(),first(),last(), to/from array/Vec;
<!-- next-url --> [Unreleased]: https://github.com/ergoplatform/bounded-vec/compare/v0.9.0...HEAD [0.9.0]: https://github.com/ergoplatform/bounded-vec/compare/v0.8.0...v0.9.0 [0.8.0]: https://github.com/ergoplatform/bounded-vec/compare/v0.7.1...v0.8.0 [0.7.1]: https://github.com/ergoplatform/bounded-vec/compare/v0.7.0...v0.7.1 [0.7.0]: https://github.com/ergoplatform/bounded-vec/compare/v0.6.0...v0.7.0 [0.6.0]: https://github.com/ergoplatform/bounded-vec/compare/v0.5.0...v0.6.0 [0.5.0]: https://github.com/ergoplatform/bounded-vec/compare/v0.4.0...v0.5.0 [0.4.0]: https://github.com/ergoplatform/bounded-vec/compare/v0.3.0...v0.4.0 [0.3.0]: https://github.com/ergoplatform/bounded-vec/compare/v0.2.0...v0.3.0 [0.2.0]: https://github.com/ergoplatform/bounded-vec/compare/v0.1.0...v0.2.0 [0.1.0]: https://github.com/ergoplatform/bounded-vec/compare/v0.0.0...v0.1.0
- initial