-
Notifications
You must be signed in to change notification settings - Fork 257
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
Tiny-const-generics #255
Tiny-const-generics #255
Conversation
92f9fe9
to
c4a6d6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Untested ACK
c4a6d6c
to
547018d
Compare
Have you planned to replace the macro |
@ChenxingLi The work in that direction is ongoing in #186, I believe. |
@ValarDragon are we okay with bumping the next release to require a minimum supported rust version of 1.51? |
Thanks! That's cool. |
547018d
to
98b7258
Compare
I made a compiler_1.51 branch, lets switch this to point at that branch, and merge into there? (And then plan to merge that branch into master once the rust compiler hits 1.53)? |
Dev, you mentioned 1.53 in the last reply, is it 1.51? https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html Or we just want to wait until 1.53 so it is more commonly used? |
The 1.51 branch was meant to indicate targeting that MSRV, and then we'd want to hold off on merging that into master until 1.53. I think this is good to merge into the 1.51 branch now. |
Sure, we can do it soon. I am looking at the code. Do you think the mentioning of 1.51+ in README.md and the version check necessary then? |
I think so, it will make the MSRV clearly documented, and if a compilation error occurs from someone using an insufficient version, it will provide a clear error message. |
* updates bytes to use const generics * Add a check for a minimum rustc version in ff * Specify min version for the compiler in README Co-authored-by: François Garillot <4142+huitseeker@users.noreply.github.com> Co-authored-by: Weikeng Chen <w.k@berkeley.edu>
This is an easy initial fragment of #186 aimed at breaking off one easy part out of that big PR, and get us started on the path to
min_const_generics
. Props to @jon-chuang for the actual work.(#186 needs a bit of bespoke specialization to achieve performance parity, so this just aims for code simplification)
bench on master:
https://gist.github.com/413013073c2c81e8999e77c1cb37c5b8
bench on this PR:
https://gist.github.com/1f1cc7a70d02709889b9a0dfa180f2cd
Pending
section inCHANGELOG.md
Files changed
in the Github PR explorer