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

feat(wasm-builder): switch to new wasm32v1-none target #4407

Open
wants to merge 69 commits into
base: master
Choose a base branch
from

Conversation

StackOverflowExcept1on
Copy link
Member

@StackOverflowExcept1on StackOverflowExcept1on commented Dec 18, 2024

Resolves #4235 by switching to new wasm32v1-none target (for runtime and smart-contracts).

  • requires Rust 1.84 (will be stable on January 9, 2025).
  • -C target-feature=+sign-ext also works for core and alloc without -Zbuild-std and rust-src component.
  • -C linker-plugin-lto still doesn't work and we can't remove panic locations.

Output WASM files are now in different location ./target/<target>/<profile>/demo_vec.wasm:

- <target> = wasm32-unknown-unknown
+ <target> = gear-wasm

Base automatically changed from av/rust to master January 11, 2025 23:16
Cargo.toml Outdated Show resolved Hide resolved
@breathx breathx added A5-dontmerge PR should not be merged yet and removed A0-pleasereview PR is ready to be reviewed by the team labels Jan 13, 2025
.github/workflows/build.yml Outdated Show resolved Hide resolved
utils/wasm-builder/src/wasm_project.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A5-dontmerge PR should not be merged yet D5-tooling Helper tools and utilities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wasm-builder uses hacks to build WASMs
3 participants