#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

#86 in Data structures

Download history 16896/week @ 2024-10-25 18349/week @ 2024-11-01 16751/week @ 2024-11-08 15093/week @ 2024-11-15 17158/week @ 2024-11-22 13720/week @ 2024-11-29 18807/week @ 2024-12-06 22322/week @ 2024-12-13 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 24838/week @ 2025-02-07

89,931 downloads per month
Used in 385 crates (11 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