PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 14
  1. 0.4.3 15 Dec 2025
    Release notes

    Added

    • Support indexing with most core::ops::Range* types.

    Changed

    Removed

    Open source →
  2. 0.4.2 24 Mar 2024
    Release notes

    rel prep (#20)

    Open source →
    Release notes

    Added

    • Add A1 type
    • Make the Alignment trait public, but unimplementable
    • Add some Borrow/BorrowMut trait impls

    Changed

    Removed

    Open source →
  3. 0.4.1 13 May 2022
    Release notes

    Added

    • Aligned<A, T> implements Copy if T implements Copy
    Open source →
  4. 0.4.0 24 Jul 2021
    Release notes

    Changed

    • as-slice dependency bumped to 0.2.0

    Removed

    • [breaking-change] removed compatibility withe version 0.1.0 of AsSlice and AsMutSlice traits (as-slice crate)
    Open source →
  5. 0.3.5 17 Jul 2021
    Release notes
    • added A32 and A64 types
    Open source →
  6. 0.3.4 31 Jul 2020
    Release notes

    Added

    • Aligned now implements the PartialEq, Eq, PartialOrd, Ord and Hash traits.
    Open source →
  7. 0.3.3 28 Jul 2020
    Release notes

    Added

    • Aligned now implements the Clone, Default, Debug and Display traits.
    • Aligned has been marked repr(C)
    Open source →
  8. 0.3.2 26 Nov 2019
    Release notes

    Added

    • Aligned<_, [T]> now implements the Index<RangeTo<usize>> trait; slicing this value to end returns an Aligned<_, [T]> slice.
    Open source →
  9. 0.3.1 07 Nov 2018
    Release notes

    Changed

    • Make deref work on Aligned<Ax, $DST>.
    Open source →
  10. 0.3.0 05 Nov 2018
    Release notes

    Changed

    • [breaking-change] the alignment type parameter of Aligned must now be one of: A2, A4, A8 or A16.

    Removed

    • [breaking-change] removed the const-fn feature. Const functions are now provided by default. This crate now requires Rust 1.31+ to build.
    Open source →
  11. 0.2.0 10 May 2018
    Release notes

    Changed

    • [breaking-change] const-fn is 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 into const-fn requires nightly.
    Open source →
  12. 0.1.2 25 Apr 2018
    Release notes

    Added

    • an opt-out "const-fn" Cargo feature. Disabling this feature removes all const constructors and makes this crate compilable on stable.
    Open source →
  13. 0.1.1 30 May 2017
    Release notes

    Added

    • support for aligned slices
    Open source →
  14. 0.1.0 30 May 2017
    Release notes
    • Initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive