Skip to content

chore: build the contract with rust 1.93 instead of 1.81 - #1062

Merged
ChaoticTempest merged 1 commit into
developfrom
chore/rust-1.93-contract-toolchain
Jul 27, 2026
Merged

chore: build the contract with rust 1.93 instead of 1.81#1062
ChaoticTempest merged 1 commit into
developfrom
chore/rust-1.93-contract-toolchain

Conversation

@Pessina

@Pessina Pessina commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

build-contract.sh has pinned Rust 1.81.0 since before edition 2024 existed, and cargo 1.81 cannot parse an edition-2024 manifest anywhere in the workspace, which is what blocks the Midnight integration. This moves the toolchain to 1.93.0, matching #842, and leaves the rest of that modernization there: near-sdk stays at 5.7.0 and no contract source changes.

Any rustc past 1.81 emits bulk-memory opcodes that the sandbox near-workspaces 0.16.0 downloads refuses to deploy, so it goes to 0.21.0 with the sandbox pinned to 2.12.0, the first release on protocol 84. That exposed a near-fetch bug where a timed-out status query surfaces as a hard error instead of as pending, which poll_status now corrects.

@github-actions

Copy link
Copy Markdown

⚠️ Integration tests were re-run (attempt 2)

@Pessina
Pessina force-pushed the chore/rust-1.93-contract-toolchain branch 4 times, most recently from 07c1077 to cd04e7e Compare July 27, 2026 14:45
@Pessina
Pessina requested review from ChaoticTempest, isSerge and jakmeier and removed request for jakmeier July 27, 2026 15:01
@Pessina
Pessina force-pushed the chore/rust-1.93-contract-toolchain branch from cd04e7e to a7efd51 Compare July 27, 2026 15:05

@ChaoticTempest ChaoticTempest left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nicely done, didn't think we could bump the rust version without doing all the near dependency changes so this is actually pretty good in the mean time before we upgrade all the deps

@ChaoticTempest
ChaoticTempest added this pull request to the merge queue Jul 27, 2026
Merged via the queue into develop with commit f50756f Jul 27, 2026
6 checks passed
@ChaoticTempest
ChaoticTempest deleted the chore/rust-1.93-contract-toolchain branch July 27, 2026 20:36
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