aligned
A newtype with alignment of at least `A` bytes
0.4.3
31M downloads/mo
#1640 most downloaded on crates.io
rust-embedded-community/aligned
What this package is like to depend on
Last release 8 months ago
15 Dec 2025
Ships fairly regularly
a new release about every 11 months
Nearly every release is documented
notes for 14 of 14 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
14 releases · first in 2017
1 release in the last 12 months
see the full history below
Release timeline
14 releases · May 2017 to Dec 2025
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 14-
0.4.315 Dec 2025Release notes
Open source →Added
- Support indexing with most
core::ops::Range*types.
Changed
Removed
- Support indexing with most
-
0.4.224 Mar 2024Release notes
Open source →Added
- Add
A1type - Make the
Alignmenttrait public, but unimplementable - Add some
Borrow/BorrowMuttrait impls
Changed
Removed
- Add
-
0.4.113 May 2022 -
0.4.024 Jul 2021Release notes
Open source →Changed
as-slicedependency bumped to 0.2.0
Removed
- [breaking-change] removed compatibility withe version 0.1.0 of
AsSliceandAsMutSlicetraits (as-slicecrate)
-
0.3.517 Jul 2021 -
0.3.431 Jul 2020Release notes
Open source →Added
Alignednow implements thePartialEq,Eq,PartialOrd,OrdandHashtraits.
-
0.3.328 Jul 2020Release notes
Open source →Added
Alignednow implements theClone,Default,DebugandDisplaytraits.Alignedhas been markedrepr(C)
-
0.3.226 Nov 2019Release notes
Open source →Added
Aligned<_, [T]>now implements theIndex<RangeTo<usize>>trait; slicing this value to end returns anAligned<_, [T]>slice.
-
0.3.107 Nov 2018 -
0.3.005 Nov 2018Release notes
Open source →Changed
- [breaking-change] the alignment type parameter of
Alignedmust now be one of:A2,A4,A8orA16.
Removed
- [breaking-change] removed the
const-fnfeature. Const functions are now provided by default. This crate now requires Rust 1.31+ to build.
- [breaking-change] the alignment type parameter of
-
0.2.010 May 2018Release notes
Open source →Changed
- [breaking-change]
const-fnis no longer a default feature (i.e. a feature that's enabled by default). The consequence is that this crate now compiles on 1.27 (beta) by default, and opting intoconst-fnrequires nightly.
- [breaking-change]
-
0.1.225 Apr 2018Release notes
Open source →Added
- an opt-out "const-fn" Cargo feature. Disabling this feature removes all
constconstructors and makes this crate compilable on stable.
- an opt-out "const-fn" Cargo feature. Disabling this feature removes all
-
0.1.130 May 2017 -
0.1.030 May 2017