#const-generics #array #typenum #hybrid #transition #interop

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

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

#85 in Data structures

Download history 16514/week @ 2024-11-16 14934/week @ 2024-11-23 13971/week @ 2024-11-30 20407/week @ 2024-12-07 22331/week @ 2024-12-14 6494/week @ 2024-12-21 12387/week @ 2024-12-28 17934/week @ 2025-01-04 16158/week @ 2025-01-11 20043/week @ 2025-01-18 20990/week @ 2025-01-25 22951/week @ 2025-02-01 24594/week @ 2025-02-08 23490/week @ 2025-02-15 44756/week @ 2025-02-22 25668/week @ 2025-03-01

122,694 downloads per month
Used in 395 crates (14 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

~320–610KB
~16K SLoC