-
-
Notifications
You must be signed in to change notification settings - Fork 777
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
Support derive for types with const generics #1272
Comments
Will reopen if the implementation in the compiler ever lands and we start hearing use cases. |
Hi, I hope it's ok that I'm commenting on an older thread, but I was wondering if this was being revisited now that const-generics are available on nightly? The main use case for const-generics would probably be in numerical applications, so I can see the main use case serving a similar role to numpy's .npy or .npz format. If there is anything I can do to implement this let me know! |
Unfortunately serde does not seem to support const-generics yet. I put in an issue at serde-rs/serde#1272 for this, so we'll see where that goes.
Unfortunately serde does not seem to support const-generics yet. I put in an issue at serde-rs/serde#1272 for this, so we'll see.
I second this as I would like to switch the |
Const generics have landed in stable now, and as I noted in the above linked issue I cannot currently derive Serde traits because I use this feature. While I can probably work around it via the |
I believe this issue was reopened in #1937. I'm also looking forward to this being implemented in the future. |
This has not landed in nightly yet but is being tracked in rust-lang/rust#44580.
It would be good to begin thinking about how to form the right trait bounds for such types.
The text was updated successfully, but these errors were encountered: