-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Const generics implementation #3
Comments
There is a hack available to make the [T; 0] implementation work: rust-lang/rust#61383 |
See 9ece314 . |
See ce075a7 |
It compiles now, very nice. See 0cbd7f3 So it's usable on nightly Rust right now on |
Feature gate got removed by a05c0fb . Users of rust 1.51.0 and beyond can use 0.3.1 and beyond. In the 0.4.x branch, my plan is to enable const-generics by default. |
It seems that serde has a [T; 0] optimization that we most likely won't be able to support in the initial stable version of const generics, so it's possible that this crate will be needed for longer, especially during early availability of const generics on stable. Thus we should think about adding a trait implemented for all array sizes using const generics to this crate eventually. For now, we should do an experiment.
The text was updated successfully, but these errors were encountered: