-
Notifications
You must be signed in to change notification settings - Fork 158
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
feat: update to rust edition 2021 #135
Conversation
It's also worth to add |
I wonder why nightly CI is unhappy now |
Wih this MSRV bump it should now be possible to relax the |
The
Note that the |
fc93a5a
to
a736919
Compare
Wow that's really weird... almost feels like a @dignifiedquire maybe try bumping |
CI gets the following error:
I'm not managing to reproduce it on Nightly version: |
Taking this PR and changing the edition to 2018 works, this is very probably a rustc bug due to |
Upgrades the edition, with changes primarily performed by `cargo fix --edition`. In order to keep the changes to a minimum, this doesn't include automated idiom fixes (i.e. `cargo fix --edition-idioms`). This is needed to unblock the edition upgrade for the RSA crate: RustCrypto/RSA#135
I opened a PR to bump the edition for |
Asked for a 0.8 update for |
num-bigint-dig 0.8 is out 🥳! |
138c2d9
to
43b3344
Compare
unfortunately this did not fix the rustc bug :'( |
I'm from my phone so I can't test now but could it be caused by the serde alloc feature not being enabled? https://github.com/RustCrypto/RSA/runs/5246995762?check_suite_focus=true#step:4:373 |
I can see it was enabled previously 👀. Must have been caused by resolver = 2 https://github.com/RustCrypto/RSA/runs/5036633905?check_suite_focus=true#step:4:274 |
Confirmed by running |
It could be worth to add the minimal versions job to CI. |
.github/workflows/ci.yml
Outdated
minimal-versions: | ||
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master | ||
with: | ||
working-directory: ${{ github.workflow }} |
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.
Argh, unfortunately, you can not use the shared workflow, since it targets multi-crate repos. You can use the following config instead:
minimal-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
profile: minimal
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo update -Z minimal-versions
- run: cargo hack test --release --feature-powerset
Also while we are at it, it could be useful to add cargo cache to other RSA jobs to reduce CI run time. I can submit a separate PR, if you do not want to do it right now.
CI improvement should be delayed to another MR, this is blocking a new release of RSA which in turn blocks the whole ecosystem that uses both RSA and another crate that has made the jump to a recent version of I can take the commits except the last one and put them in another MR to move forward if needed. |
I tried @newpavlov's So I agree it would make sense to get this PR merged first then circle back on making |
I am fine with leaving the CI changes for later, but I think the minimal versions build should be fixed before we release |
FYI for anyone particularly blocked here: I just cut a v0.6.0-pre release with these changes |
bumps MSRV to 1.56.0