Skip to content
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

Upgrade rust toolchain #3522

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

Upgrade rust toolchain #3522

wants to merge 14 commits into from

Conversation

d-sonuga
Copy link
Collaborator

For #3470

@d-sonuga d-sonuga force-pushed the upgrade-rust-toolchain branch from 3186421 to 2bf3d9a Compare February 21, 2025 13:41
…ter_doc_comments`, `unnecessary_map_or`, `unnecessary_first_then_check` and `useless_conversion` lints
…continuation`, `ptr_arg`, `unnecessary_map_or`, `needless_lifetimes`, `literal_string_with_formatting_args`, `manual_unwrap_or_default` and dead code lints and remove `lazy_cell` feature flag
…e code to pass `empty_line_after_doc_comments`, `needless_lifetimes` and `manual_div_ceil` lints
…rror with rkyv `Serialize` and `Deserialize` derives
@d-sonuga d-sonuga force-pushed the upgrade-rust-toolchain branch from 2bf3d9a to 00d46db Compare February 21, 2025 14:21
@d-sonuga d-sonuga requested review from HDauven, herr-seppia, miloszm and Neotamandua and removed request for HDauven February 21, 2025 14:58
Copy link
Member

@herr-seppia herr-seppia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall

Some stuff to clarify before approval

@@ -2,7 +2,7 @@ all: wasm clippy

wasm: ## Generate the optimized WASM for the contract given
@RUSTFLAGS="$(RUSTFLAGS) --remap-path-prefix $(HOME)= -C link-args=-zstack-size=65536" \
cargo build \
cargo +dusk build \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you changed to use dusk compiler?
It should work with standard compiler

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new toolchain can't compile piecrust-uplink anymore because of changes made to the panic handler in rust 1.81.0.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, should we first update piecurst?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can.
We don't need to do that right now if all the contracts use the dusk toolchain, but if we do decide to do that, then the dusk toolchain, too, will need to be updated.

@d-sonuga d-sonuga marked this pull request as draft February 26, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants