#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

26 releases

0.2.3 Dec 7, 2024
0.2.1 Oct 20, 2024
0.2.0-rc.11 Sep 30, 2024
0.2.0-rc.9 Jun 23, 2024
0.1.0 May 7, 2022

#52 in Data structures

Download history 19350/week @ 2024-09-24 13976/week @ 2024-10-01 19318/week @ 2024-10-08 22141/week @ 2024-10-15 18123/week @ 2024-10-22 19629/week @ 2024-10-29 15311/week @ 2024-11-05 16649/week @ 2024-11-12 15986/week @ 2024-11-19 15924/week @ 2024-11-26 14206/week @ 2024-12-03 19839/week @ 2024-12-10 19919/week @ 2024-12-17 6804/week @ 2024-12-24 14439/week @ 2024-12-31 17469/week @ 2025-01-07

62,074 downloads per month
Used in 372 crates (9 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

~120–355KB