-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bump MSRV to Rust 1.63.0 #102
Conversation
Needs #103 |
Woops, the date in the branch name is wrong, I did not do this PR in the future. |
9272e14
to
62c60f7
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.
Concept ACK
62c60f7
to
34f2d5d
Compare
34f2d5d
to
9a6e2ba
Compare
Bloody hell, will try to fix tomorrow. |
3073bb1
to
60fb573
Compare
f**king |
This fucking PR is starting to piss me off. |
Compiler is version 1.58 even over in #106. Just kill me already :) |
60fb573
to
7f2addf
Compare
Phew, finally found it, all I needed was a breather and a good feed. FTR it was buried in the |
clippy.toml
Outdated
@@ -1 +1 @@ | |||
msrv = "1.56.1" | |||
msrv = "1.63.0" |
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.
This file should be no longer needed, clippy
can read Cargo.toml
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.
Cool, we can remove this all over the place if that is the case.
@@ -3,7 +3,7 @@ | |||
set -ex | |||
|
|||
FEATURES="std alloc serde" | |||
MSRV="1\.48\.0" | |||
MSRV="1\.63\.0" |
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.
SSOT break. This should just read Cargo.toml
.
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.
If #106 gets support this doesn't matter because the file is deleted, can we leave it for now?
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.
OK, concept ACK doing #106
@@ -1,6 +1,7 @@ | |||
[package] | |||
name = "hex-fuzz" | |||
edition = "2018" | |||
edition = "2021" | |||
rust-version = "1.63.0" |
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.
I wish we could pull these from workspace already... It's just one version away.
|
||
[lints.rust] | ||
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(fuzzing)'] } | ||
EOF |
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.
This is unrelated but not a big deal.
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.
Ah yes, you are correct, my bad. Will leave them in now.
fuzz/generate-files.sh
Outdated
@@ -11,7 +11,8 @@ source "$REPO_DIR/fuzz/fuzz-util.sh" | |||
cat > "$REPO_DIR/fuzz/Cargo.toml" <<EOF | |||
[package] | |||
name = "hex-fuzz" | |||
edition = "2018" | |||
edition = "2021" | |||
rust-version = "1.63.0" |
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.
Since this is generated we should pull the value from single source.
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.
Unrelated to this PR, right? Can we just put this in, I spent way too long on this extremely annoying PR already.
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.
It's literally just replacing the line with $(grep '^rust-version ' "$REPO_DIR/Cargo.toml")
7f2addf
to
7650ab5
Compare
Please see new PR description. |
Rust 1.63.0 is in Debian stable, lets use it as our MSRV. Includes: - removal of clippy config file, allegedly no longer needed - required fuzz changes (toolchain, bump of `hongfuzz` version) - gets fields by grepping when generating the fuzz manifest - removes now unneeded pinning in CI script And includes unrelated fix by adding `unexpected_cfgs`.
7650ab5
to
5cd37e3
Compare
I've modified the description to better describe what's going on. |
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.
ACK 5cd37e3
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/rust-toolchain@1.56.1 | ||
uses: dtolnay/rust-toolchain@1.63.0 |
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.
I'm not going to hold this because the PR is blocking a bunch of other work but this should be read from Cargo.toml
in a previous step.
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.
Holla if you can think of a better way of tracking issues across "core crates": rust-bitcoin/rust-bitcoin#3335
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.
There are org-wide "projects" but I'm not sure if it's the right tool.
Thanks, FWIW I did try to look up the |
I could find it easily: https://doc.rust-lang.org/nightly/clippy/lint_configuration.html#msrv I just put |
Lol, my search-foo needs improving. |
Oh and its because we didn't have a |
It's not tied to |
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.
ACK 5cd37e3 successfully ran local tests
Updated my local CI so that it will use |
Hmm, this is gonna kill my performance for multi-workspace repos if I can't determine my compiler set until after I've split into multiple workspaces. But ok, we can discuss that when we try to make that change for rust-bitcoin. |
Rust 1.63.0 is in Debian stable, lets use it as our MSRV.
Includes:
msrv
field inclippy.toml
torust-version
field inCargo.toml
hongfuzz
version)And includes unrelated fix by adding
unexpected_cfgs
.