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

Update the new rust compiler target for wasm #263

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alabulei1
Copy link
Collaborator

Use wasm32-wasip1 instead of wasm32-wasi because the wasm32-wasi target is being renamed to wasm32-wasip1 and the wasm32-wasi target will be removed from nightly in October 2024 and removed from stable Rust in January 2025.

Copy link
Member

juntao commented Jan 10, 2025

Hello, I am a PR summary agent on flows.network. Here are my reviews of code commits in this PR.


Commit a09879853a7d4355c5961a008d81a54296f60635

Key Changes

  1. Target Update: Changed the Rust compiler target from wasm32-wasi to wasm32-wasip1 across multiple documents.
  2. Path Updates: Adjusted file paths and commands in various documentation files to reflect the new target directory target/wasm32-wasip1/release/.
  3. Documentation Adjustments: Updated URLs, code comments, and references from wasm32-wasi to wasm32-wasip1.

Most Important Findings

  • The primary update is the transition from using wasm32-wasi to wasm32-wasip1, which likely indicates a newer or updated WebAssembly System Interface (WASI) target for Rust.
  • Consistent changes across multiple files ensure that all references and commands align with the new target, preventing potential build errors in projects relying on these instructions.

Recommendations

  • Verify if wasm32-wasip1 is fully compatible with existing projects and examples before merging to avoid any runtime issues.
  • Ensure that all developers and users are aware of this change through appropriate documentation or release notes.

Comment on lines +9 to +11
If you are interested in enabling the SIMD proposal will improve how much performance of the applications, please refer to our [wasm32-wasip1 benchmark](https://github.com/second-state/wasm32-wasip1-benchmark) for more information. The Mandelbrot Set application can have a **2.65x** speedup in our benchmark.

We modified the Mandelbrot Set example from our [wasm32-wasi benchmark project](https://github.com/second-state/wasm32-wasi-benchmark/blob/master/src/mandelbrot.c). We will use this as an example in this article.
We modified the Mandelbrot Set example from our [wasm32-wasip1 benchmark project](https://github.com/second-state/wasm32-wasip1-benchmark/blob/master/src/mandelbrot.c). We will use this as an example in this article.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should change the URL here.

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.

3 participants