-
Notifications
You must be signed in to change notification settings - Fork 51
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
chore: upgrade to stable toolchain #293
Conversation
@frol This is for updating the toolchain to stable. The wasm contract should now be buildable with the latest Rust Stable Version |
Quick question, I have updated the build.rs file to use sandbox with a newer commit from the nearcore repo, and I changed |
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.
Other than the comment above, we are good to go. Given that it will require near_sandbox_utils publishing, I think we can use install_with_version
here for the time being, but let's pick the most recent stable release in nearcore instead of some random recent commit.
@shariffdev @frol Does this PR solve issue also for nightly (current) versions? |
@frol if we use the most recent stable release which is 1.35, it doesn't include the fixes for this #272, It is either I use this recent commit or edit the sandbox and use a more recent hash commit Or we can forgo this issue #272 entirely, until it is included in the next release. |
I see, indeed, I hoped there was another release since that time. I think we should be fine using more recent nearcore snapshot for now as workspaces-rs only needs to run it in a local node mode, so there is no risk of incompatibility, insecurity, or instability of it. That said, probably sandbox-utils does not need to be updated to some random hash commit, let's upgrade it to the most recent release of nearcore while workspaces-rs would use some custom commit hash. |
Working on the sandbox utils now. |
Yes, this should solve the issue you mentioned. This crate now uses a a newer sandbox which has the fix for this near/nearcore/issues/9143 |
@shariffdev this PR was merged. But when I link the latest main hash 8d93197 as a dependency, near/nearcore/issues/9143 is still reproducible for stable and nightly. Any ideas? |
@mrLSD I've looked into this with an example contract in a fresh project dir using the stable toolchain and things are fine. Could you have missed something? |
@shariffdev
All tests failed with |
@mrLSD Try doing a |
@shariffdev
|
I'm out of ideas but still looking into it. Is there a chance the code is open and I can take a look at it? |
@shariffdev How it was tested:
I tested for our projects: https://github.com/aurora-is-near/aurora-eth-connector/tree/master/eth-connector-tests https://github.com/aurora-is-near/aurora-engine/tree/develop/engine-tests Same issues. |
I have created a new issue for better visibility on this problem you are facing @mrLSD We can move the discussion over there |
The issue involving wasm contract builds for Rust toolchain 1.70 and later: near/nearcore#9143 has been resolved
Should be ok to update the toolchain.
Are we updating to toolchain1.70
or ok to usestable
?