-
Notifications
You must be signed in to change notification settings - Fork 257
chore: update rust toolchain, migrate to 2024 edition #3535
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
Merged
teor2345
merged 15 commits into
autonomys:main
from
tediou5:chore/update-rust-toolchain-and-edition
Jun 2, 2025
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
76d0a35
feat: derive the edition from the workspace Cargo.toml
tediou5 c7266f8
chore: update rust toolchain and edition
tediou5 01af654
fix: set_var is unsafe now
tediou5 ff6cdea
fix: remove the unnecessary binding modifier
tediou5 8e253d7
fix: rename feature duration_constructors => duration_constructors_lite
tediou5 cd16809
fix: capture more lifetime to adjusted the RPIT lifetime capture rules
tediou5 fdb55de
fix: extern blocks must be unsafe
tediou5 543b372
chore: run cargo -Zgitoxide -Zgit clippy --locked --all-targets --fea…
tediou5 500f33a
chore: run cargo -Zgitoxide -Zgit clippy --locked --all-targets --fea…
tediou5 71f66d3
chore(clippy): replace clone with std::slice::from_ref
tediou5 5788435
chore: cargo fmt --all
tediou5 ad37d83
feat: remove let_chains feature
tediou5 272b30b
Fix another slice::from_ref and some dead code
teor2345 dc3b82e
Remove extra newline in subspace-gateway/Cargo.toml
teor2345 62e7ae5
Use rustfmt 2024 edition
teor2345 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[workspace.package] | ||
edition = "2024" | ||
|
||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 seems like
rustfmt
changes the type/function ordering inuse
between editions. I wonder if this would be better done in a separate PR?reorder_imports = false
might keep things the way they are in this PR.https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#reorder_imports
This is not a blocker for me.
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 see this as part of the version migration, so I’ve moved it into a separate commit. I hope that makes it easier for you to review.