-
Notifications
You must be signed in to change notification settings - Fork 283
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
Explicitly specify the associated type of the trait & Minimum version. #228
Conversation
I need to verify...but one of the reasons why we change the representation of One quick question: the arkworks-rs has traditionally been rush to use newer versions of Rust (since some language features we have been waiting for being stable can simplify the code a lot). In your use case, is there a situation where you would need to use a previous version? |
I also agree to use the latest version to provide performance and optimized code. And the library is evolving rapidly. But unfortunately, our production environment is still using version 1.48, looking for stability, not the latest, so the default compile environment in docker cannot upgrade. Maybe another way is to put some tags on the library to mark version upgrade and incompatibility. Otherwise, the only way is to lock commit, but it's not elegant. |
Is it not possible to install the latest rust version in your docker environment via a new docker layer? Or even just installing rustup from source? For example, this? https://hub.docker.com/_/rust |
Thinks, I am going to persuade everyone to upgrade to the latest version. And then it will be easily solved. And if no others need this PR, I will close it. |
Keep us posted. I think this PR is still helpful---we can say what is the minimal version needed to compile. |
FWIW, you can now pin to v0.2.0, which will at least work for |
I think this PR is good to merge |
Just to collect a last round of feedback: @sunhuachuang do you still need this PR so that Based on the discussion above, what is most needed in this PR is that we specify the minimal version to use. |
I'm OK, I have upgraded the company environment to the latest 1.51+. Rust is developing very fast. Although some projects continue to use lower versions, if no one else encounters this problem, we can continue to upgrade with Rust, as long as it is compatible with the 6-month (2 versions). |
Oh cool, if this change isn't needed anymore, then I think we should close this. @huitseeker added an MSRV check in the https://github.com/arkworks-rs/algebra/tree/compiler_1.51 branch, so I think we should close this for now then |
Got it. Then let me close this PR for now. |
Description
Checked on stable versions.
If explicitly specify the associated type of the trait
CurveCycle
&PairingFriendlyCycle
.<=1.45
is not ok, becauseconst fn
.1.46 ~ 1.50
is ok.cargo test
is ok.If not.
1.49 +
is ok.Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
Pending
section inCHANGELOG.md
Files changed
in the Github PR explorer