-
Notifications
You must be signed in to change notification settings - Fork 121
Adapt to wasm32v1-none target #1988
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
Conversation
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.
One change is needed, commented inline.
Also, we need to think about how this will work for folks with older contracts that use an older version of rustc. So I think for the contract build command we need to choose the target based on the version of Rust installed and in use.
Otherwise lgtm.
We'll want to delay merging this closer to / after when the SDK is released so that the init commands that generate the contract Cargo.toml will require a late enough Rust version.
Pushed a fix that undoes the backticks and adds a local clippy-allow. I think this is what you wanted?
Not sure I understand this -- it's a rare contract that's going to not work on 1.84. Are we typically promising "never upgrading rust versions"?
Ok. |
|
I separated the rust upgrade into: |
No, but existing contracts should be able to continue to build with the new tooling, and existing contracts explicitly refuse to build on anything newer than 1.81. Anyone who has already built contracts, and is building a new contract that they presumedly want to use a new SDK and new CLI for, when they go back and run build on their recent (not actually that old) contract will see build errors. I think we need a small tweak to branch on the version of Rust. If the version of Rust in use is >= 1.84, use cc @stellar/devx |
|
A mistake that might be easy for devs to make is that they could have scripts that pull the wasm file from the old target directory, and that file could still be present on disk but not updating. Some ideas:
|
I think you mean "if < 1.82" right? Versions 1.82 and 1.83 are, AIUI, something we don't ever want anyone compiling with, because they don't support |
|
Yes right. I wasn't sure what to do with those versions. But I guess the cli errors? |
|
fyi @ElliotFriend @briwylde08 We may need to update the dev docs as well. This changes the wasm path. Even our getting started guide may need to provide note for this |
|
Love to see this getting closer! Thanks for the hard work everyone! |
|
Closing this in favor of #2022 |
Part of stellar/rs-soroban-sdk#1428 -- just moving us to rust 1.84 and wasm32v1-none for the wasm build (and fixing clippy fallout).