#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

25 releases

0.2.1 Oct 20, 2024
0.2.0-rc.11 Sep 30, 2024
0.2.0-rc.9 Jun 23, 2024
0.2.0-rc.8 Mar 17, 2024
0.1.0 May 7, 2022

#56 in Data structures

Download history 20056/week @ 2024-07-27 10980/week @ 2024-08-03 12705/week @ 2024-08-10 12933/week @ 2024-08-17 8173/week @ 2024-08-24 12507/week @ 2024-08-31 12108/week @ 2024-09-07 11336/week @ 2024-09-14 18990/week @ 2024-09-21 14572/week @ 2024-09-28 18363/week @ 2024-10-05 21237/week @ 2024-10-12 20011/week @ 2024-10-19 18599/week @ 2024-10-26 16965/week @ 2024-11-02 16332/week @ 2024-11-09

75,042 downloads per month
Used in 358 crates (8 directly)

MIT/Apache

73KB
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

~125–365KB