2
2
3
3
[ ![ crate] [ crate-image ]] [ crate-link ]
4
4
[ ![ Docs] [ docs-image ]] [ docs-link ]
5
+ [ ![ Build Status] [ build-image ]] [ build-link ]
6
+ [ ![ Safety Dance] [ safety-image ]] [ safety-link ]
5
7
![ Apache2/MIT licensed] [ license-image ]
6
8
![ Rust Version] [ rustc-image ]
7
9
[ ![ Project Chat] [ chat-image ]] [ chat-link ]
8
- [ ![ Build Status] [ build-image ]] [ build-link ]
9
10
10
11
Hybrid array type combining const generics with the expressiveness of
11
12
[ ` typenum ` ] -based constraints, providing an alternative to [ ` generic-array ` ]
12
13
and a incremental transition path to const generics.
13
14
14
15
[ Documentation] [ docs-link ]
15
16
17
+ ## About
18
+
19
+ This crate uses ` typenum ` to enable the following features which aren't yet
20
+ possible with the stable implementation of const generics:
21
+
22
+ - [ #60551 : Associated constants in traits can not be used in const generics] [ rust-issue-60551 ]
23
+ - [ #76560 : Complex generic constants: ` feature(generic_const_exprs) ` ] [ rust-issue-76560 ]
24
+
25
+ Internally the crate is built on const generics and provides traits which make
26
+ it possible to convert between const generic types and ` typenum ` types.
27
+
16
28
## License
17
29
18
30
Licensed under either of:
@@ -30,18 +42,24 @@ dual licensed as above, without any additional terms or conditions.
30
42
31
43
[ // ] : # ( badges )
32
44
33
- [ crate-image ] : https://img.shields.io/crates/v/ hybrid-array.svg
45
+ [ crate-image ] : https://buildstats.info/crate/ hybrid-array
34
46
[ crate-link ] : https://crates.io/crates/hybrid-array
35
47
[ docs-image ] : https://docs.rs/hybrid-array/badge.svg
36
48
[ docs-link ] : https://docs.rs/hybrid-array/
49
+ [ build-image ] : https://github.com/RustCrypto/utils/workflows/hybrid-array/badge.svg?branch=master&event=push
50
+ [ build-link ] : https://github.com/RustCrypto/utils/actions/workflows/hybrid-array.yml
51
+ [ safety-image ] : https://img.shields.io/badge/unsafe-forbidden-success.svg
52
+ [ safety-link ] : https://github.com/rust-secure-code/safety-dance/
37
53
[ license-image ] : https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
38
54
[ rustc-image ] : https://img.shields.io/badge/rustc-1.56+-blue.svg
39
55
[ chat-image ] : https://img.shields.io/badge/zulip-join_chat-blue.svg
40
56
[ chat-link ] : https://rustcrypto.zulipchat.com/#narrow/stream/260052-utils
41
- [ build-image ] : https://github.com/RustCrypto/utils/workflows/hybrid-array/badge.svg?branch=master&event=push
42
- [ build-link ] : https://github.com/RustCrypto/utils/actions/workflows/hybrid-array.yml
43
57
44
- [ // ] : # ( general links)
58
+ [ // ] : # ( links )
45
59
46
60
[ RustCrypto ] : https://github.com/rustcrypto
47
61
[ RustCrypto/utils#378 ] : https://github.com/RustCrypto/utils/issues/378
62
+ [ `typenum` ] : https://github.com/paholg/typenum
63
+ [ `generic-array` ] : https://github.com/fizyk20/generic-array
64
+ [ rust-issue-60551 ] : https://github.com/rust-lang/rust/issues/60551
65
+ [ rust-issue-76560 ] : https://github.com/rust-lang/rust/issues/76560
0 commit comments