-
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 1 commit
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
Jump to file
Failed to load files.
Loading
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,7 +1,8 @@ | ||
fn main() { | ||
#[cfg(feature = "std")] | ||
{ | ||
std::env::set_var("WASM_BUILD_TYPE", "release"); | ||
// SAFETY: no concurrent writing or reading here, build scripts are single threaded. | ||
unsafe { std::env::set_var("WASM_BUILD_TYPE", "release") }; | ||
Comment on lines
-4
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Search and replace: fastmod --accept-all --fixed-strings 'std::env::set_var("WASM_BUILD_TYPE", "release");' '// SAFETY: no concurrent writing or reading here, build scripts are single threaded.
unsafe { std::env::set_var("WASM_BUILD_TYPE", "release") };' |
||
substrate_wasm_builder::WasmBuilder::new() | ||
.with_current_project() | ||
.export_heap_base() | ||
|
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
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.
Uh oh!
There was an error while loading. Please reload this page.