Skip to content

Add instructions to test wasi (wasm32-wasip1) specific tests #2537

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
merged 1 commit into from
Aug 6, 2025

Conversation

jdonszelmann
Copy link
Contributor

@jdonszelmann jdonszelmann commented Aug 6, 2025

r? @jieyouxu

I used slightly playful language which I'm aware of, but I don't think it should matter that much for the devguide. Decided not to remove the TODO comment entirely since I don't know how much of it these instructions resolve.

@rustbot rustbot added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Aug 6, 2025
Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

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

Thanks, just two nits, feel free to merge after :)

@@ -342,14 +342,35 @@ coordinate running tests (see [src/bootstrap/src/core/build_steps/test.rs]).
> **TODO**
>
> - Is there any support for using an iOS emulator?
> - It's also unclear to me how the wasm or asm.js tests are run.
> - It's also unclear to me how the asm.js tests are run.
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: yet this, asm.js was removed an eternity ago since the asmjs target got yeeted 😆

Comment on lines 358 to 360
Follow the install instructions from the [wasi sdk repository] to get a sysroot on your computer.
Some cmake commands that take a while and give a lot of very concerning c++ warnings...
Then, in `bootstrap.toml`, point to the sysroot like so:
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: also note that you need a WASI SDK satisifying the minimum version required by the wasm32-wasip1 target support page, i.e. https://github.com/rust-lang/rust/blob/master/src/doc/rustc/src/platform-support/wasm32-wasip1.md#building-the-target.

@jdonszelmann jdonszelmann merged commit a69410c into rust-lang:master Aug 6, 2025
1 check passed
@rustbot rustbot removed the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Aug 6, 2025
@tshepang
Copy link
Member

tshepang commented Aug 6, 2025

@jdonszelmann nice that you used sembr

@jdonszelmann
Copy link
Contributor Author

Always, though I didn't know it was named this hehe ❤️

@jdonszelmann
Copy link
Contributor Author

I wrote too much papers in latex to consider anything else.....

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.

4 participants