#array #generics

no-std hybrid-array

Hybrid typenum-based and const generic array types designed to provide the flexibility of typenum-based expressions while also allowing interoperability and a transition path to const generics

27 releases

Uses new Rust 2024

0.3.0 Feb 21, 2025
0.2.3 Dec 7, 2024
0.2.1 Oct 20, 2024
0.2.0-rc.9 Jun 23, 2024
0.1.0 May 7, 2022

#79 in Data structures

Download history 8853/week @ 2024-12-20 8949/week @ 2024-12-27 20036/week @ 2025-01-03 16042/week @ 2025-01-10 17824/week @ 2025-01-17 22679/week @ 2025-01-24 21698/week @ 2025-01-31 24979/week @ 2025-02-07 21942/week @ 2025-02-14 44445/week @ 2025-02-21 30971/week @ 2025-02-28 34098/week @ 2025-03-07 40183/week @ 2025-03-14 39462/week @ 2025-03-21 28323/week @ 2025-03-28 30286/week @ 2025-04-04

145,073 downloads per month
Used in 405 crates (17 directly)

MIT/Apache

75KB
2K SLoC

RustCrypto: Hybrid Const Generic / Typenum Arrays

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Hybrid array type combining const generics with the expressiveness of typenum-based constraints, providing an alternative to generic-array and a incremental transition path to const generics.

About

This crate uses typenum to enable the following features which aren't yet possible with the stable implementation of const generics:

Internally the crate is built on const generics and provides traits which make it possible to convert between const generic types and typenum types.

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~315–600KB
~16K SLoC