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

Document WebAssembly target feature expectations #128511

Merged
merged 9 commits into from
Aug 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Review comments
alexcrichton committed Aug 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 7d2595f78315acf6b00c0a28b5fea623bbc44135
8 changes: 4 additions & 4 deletions src/doc/rustc/src/platform-support/wasm32-wasip1-threads.md
Original file line number Diff line number Diff line change
@@ -165,14 +165,14 @@ necessary to detect this target may change as the target becomes more stable.

## Enabled WebAssembly features

The default set of WebAssembly features enabled for compilation is similar to
[`wasm32-unknown-unknokwn`](./wasm32-unknown-unknown.md) but two more features
are included:
The default set of WebAssembly features enabled for compilation includes two
more features in addition to that which
[`wasm32-unknown-unknown`](./wasm32-unknown-unknown.md) enables:

* `bulk-memory`
* `atomics`

For more information about features see the documentation for
[`wasm32-unknown-unknokwn`](./wasm32-unknown-unknown.md), but note that the
[`wasm32-unknown-unknown`](./wasm32-unknown-unknown.md), but note that the
`mvp` CPU in LLVM does not support this target as it's required that
`bulk-memory`, `atomics`, and `mutable-globals` are all enabled.
2 changes: 1 addition & 1 deletion src/doc/rustc/src/platform-support/wasm32-wasip1.md
Original file line number Diff line number Diff line change
@@ -136,5 +136,5 @@ to Rust 1.80 the `target_env` condition was not set.
## Enabled WebAssembly features

The default set of WebAssembly features enabled for compilation is currently the
same as [`wasm32-unknown-unknokwn`](./wasm32-unknown-unknown.md). See the
same as [`wasm32-unknown-unknown`](./wasm32-unknown-unknown.md). See the
documentation there for more information.
2 changes: 1 addition & 1 deletion src/doc/rustc/src/platform-support/wasm32-wasip2.md
Original file line number Diff line number Diff line change
@@ -65,5 +65,5 @@ It's recommended to conditionally compile code for this target with:
## Enabled WebAssembly features

The default set of WebAssembly features enabled for compilation is currently the
same as [`wasm32-unknown-unknokwn`](./wasm32-unknown-unknown.md). See the
same as [`wasm32-unknown-unknown`](./wasm32-unknown-unknown.md). See the
documentation there for more information.