-
Notifications
You must be signed in to change notification settings - Fork 74
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
added toolchain #166
added toolchain #166
Conversation
spend 30 minutes rebuilding until I stumbled upon right version 😿 |
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.
https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file is the documentation for the toolchain file. I'm not sure about this PR because we aren't "pinned to a specific version". We use whatever is the current stable release of Rust like many other projects. We might want to document this in the readme.
I like the addition of the toolchain file, as it can express exactly this. We can make the file it specify that the project uses the |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
@vkgnosis the docker file does tie it to a specific version which I had tried to mimic in the toolchain file. We spend some time compiling the project during the hackathon until we found out which Rust version needs to be used. I have updated the toolchain file to point to the stable version as @nlordell suggestes :-), |
have read the CLA Document and I hereby sign the CLA |
Good point. I see |
This surprised me because that is what I assume by default when I build a Rust project: it builds with the current stable unless mentioned otherwise. I'm also used to always having the current stable installed and up to date so it hadn't occured to me that someone would try other versions. I'm probably biased by what I'm used to and I can see it might be more confusing for others so I'm fine with the PR. |
@vkgnosis many thanks for sharing these information. I am relatively new to Rust and do not use it very often (yet!), this is why I appreciate these information. Unfortunately my laptop is very slow and the first compilation took a while. Do you have any advice on a hardware setup for me? E.g. what are you using if I may ask. Thanks. |
Unfortunately this Rust project is slow to build and there is no single solution. Rust in general is slow to build but we also have a large number of dependencies. |
Codecov Report
@@ Coverage Diff @@
## main #166 +/- ##
==========================================
+ Coverage 64.55% 64.57% +0.02%
==========================================
Files 185 185
Lines 38602 38602
==========================================
+ Hits 24920 24928 +8
+ Misses 13682 13674 -8 |
Hmm... Looks like there are CLA issues. Any chance you could rebase/squash this commit using a
Sorry for the inconvenience! |
Hello @nlordell many thanks for following up! I had tried to fix it without success. I will try rebase/squash. Thanks for the support. |
Update rust-toolchain using stable version and components Co-authored-by: Nicholas Rodrigues Lordello <[email protected]> reverted changes
this always depends on what you have configured as local default toolchain. i am using for most of my projects some recent nightly build, so if your project don't have toolchain defined, cargo will just my default and fail, but if you define your toolchain version, cargo just automatically uses that and it works for every environment (including ci :) |
Looks like it worked! Thanks for the contribution and for bearing with us through our brand new CLA process 😄 |
Fixes #issue.
added rust-toolchain file in order to run
cargo build
outside of docker and use the right version as the docker image wouldTest Plan
run
cargo build
andrustup show
to view that the same settings as by the docker image are usedRelease notes
Optionally add notes, suggestions and warnings for the releaser. They will be included in the release changelog.