-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(wasm-builder): add support for new wasm32v1-none target
#7008
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
bkchr
merged 26 commits into
paritytech:master
from
StackOverflowExcept1on:wasm32v1-none
Feb 9, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
78c5f4c
feat(wasm-builder): add support for new `wasm32v1-none` target
StackOverflowExcept1on dcfbeb7
fix typo
StackOverflowExcept1on 03714a0
trying to fix CI
StackOverflowExcept1on 2410530
Merge branch 'master' into wasm32v1-none
StackOverflowExcept1on 575d805
Update prdoc/pr_7008.prdoc
bkchr 8fffe18
Merge branch 'master' into wasm32v1-none
bkchr ce0fb1d
Merge branch 'master' into wasm32v1-none
bkchr 3d26ce9
Merge branch 'master' into wasm32v1-none
bkchr 4c3b0ea
git apply patch from CI
StackOverflowExcept1on 486be73
Revert "git apply patch from CI"
StackOverflowExcept1on 21245bc
just changle location of substrate-wasm-builder
StackOverflowExcept1on d044efc
Merge branch 'master' into wasm32v1-none
bkchr 1f34087
Fix umbrella script
bkchr 8ae5e7b
Update prdoc/pr_7008.prdoc
bkchr f154742
add sp-consensus-beefy bump patch to prdoc
StackOverflowExcept1on 6bfea51
use wasm32v1-none target only if installed
StackOverflowExcept1on 5838f1e
Merge remote-tracking branch 'origin/master' into wasm32v1-none
StackOverflowExcept1on b21ffdf
Merge branch 'master' into wasm32v1-none
StackOverflowExcept1on 3628105
resolve conversations
StackOverflowExcept1on a804037
Merge remote-tracking branch 'origin/master' into wasm32v1-none
StackOverflowExcept1on d8b1363
Merge branch 'master' into wasm32v1-none
StackOverflowExcept1on 929e755
Merge branch 'master' into wasm32v1-none
StackOverflowExcept1on 94e1fd1
Merge remote-tracking branch 'origin/master' into wasm32v1-none
StackOverflowExcept1on f5fa789
move `is_target_installed` method to `DummyCrate`
StackOverflowExcept1on 6c058a9
Merge branch 'master' into wasm32v1-none
StackOverflowExcept1on 3bab473
Merge branch 'master' into wasm32v1-none
StackOverflowExcept1on 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 |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
| # See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
|
||
| title: 'feat(wasm-builder): add support for new `wasm32v1-none` target' | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: | | ||
| Resolves [#5777](https://github.com/paritytech/polkadot-sdk/issues/5777) | ||
|
|
||
| Previously `wasm-builder` used hacks such as `-Zbuild-std` (required `rust-src` component) and `RUSTC_BOOTSTRAP=1` to build WASM runtime without WASM features: `sign-ext`, `multivalue` and `reference-types`, but since Rust 1.84 (will be stable on 9 January, 2025) the situation has improved as there is new [`wasm32v1-none`](https://doc.rust-lang.org/beta/rustc/platform-support/wasm32v1-none.html) target that disables all "post-MVP" WASM features except `mutable-globals`. | ||
|
|
||
| Wasm builder requires the following prerequisites for building the WASM binary: | ||
| - Rust >= 1.68 and Rust < 1.84: | ||
| - `wasm32-unknown-unknown` target | ||
| - `rust-src` component | ||
| - Rust >= 1.84: | ||
| - `wasm32v1-none` target | ||
| - no more `-Zbuild-std` and `RUSTC_BOOTSTRAP=1` hacks and `rust-src` component requirements! | ||
|
|
||
| crates: | ||
| - name: substrate-wasm-builder | ||
| bump: minor | ||
| validate: false | ||
| - name: sp-consensus-beefy | ||
| bump: patch | ||
bkchr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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
Oops, something went wrong.
Oops, something went wrong.
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.