10 releases (5 breaking)

0.6.1 Jul 18, 2024
0.6.0 May 21, 2024
0.5.0 Aug 21, 2022
0.4.2 Jul 29, 2022
0.1.0 Jul 24, 2022

#256 in Parser implementations

Download history 56986/week @ 2024-08-17 57819/week @ 2024-08-24 58165/week @ 2024-08-31 65792/week @ 2024-09-07 66364/week @ 2024-09-14 74475/week @ 2024-09-21 71606/week @ 2024-09-28 77246/week @ 2024-10-05 79008/week @ 2024-10-12 78139/week @ 2024-10-19 80960/week @ 2024-10-26 88329/week @ 2024-11-02 88009/week @ 2024-11-09 92264/week @ 2024-11-16 108108/week @ 2024-11-23 128966/week @ 2024-11-30

432,139 downloads per month
Used in 183 crates (32 directly)

MIT license

56KB
1.5K SLoC

aligned-vec

This crate provides the AVec<T> and ABox<T> types, which are intended to have a similar API to Vec<T> and Box<T>, but align the data they contain to a runtime alignment value.

This is useful for situations where the alignment of the data matters, such as when working with numerical data that can get performance benefits from being aligned to a SIMD-compatible memory address.

Features

  • std (default feature): Links this crate to the std-crate instead of the core-crate.
  • serde: Implements serialization and deserialization features for ABox and AVec.

lib.rs:

aligned-vec

This crate provides the AVec<T> and ABox<T> types, which are intended to have a similar API to Vec<T> and Box<T>, but align the data they contain to a runtime alignment value.

This is useful for situations where the alignment of the data matters, such as when working with numerical data that can get performance benefits from being aligned to a SIMD-compatible memory address.

Features

  • std (default feature): Links this crate to the std-crate instead of the core-crate.
  • serde: Implements serialization and deserialization features for ABox and AVec.

Dependencies

~280–790KB
~19K SLoC