about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authordaxpedda <daxpedda@gmail.com>2024-02-27 23:06:44 +0100
committerdaxpedda <daxpedda@gmail.com>2024-03-10 09:00:01 +0100
commitf09c19ac3a514a0f74e25443f48898f80bde561c (patch)
tree47cea8b1b80cf11cc4e6e9271b398517efeaea0b /src
parent5bc7b9ac8ace5312e1d2cdc2722715cf58d4f926 (diff)
downloadrust-f09c19ac3a514a0f74e25443f48898f80bde561c.tar.gz
rust-f09c19ac3a514a0f74e25443f48898f80bde561c.zip
Introduce perma-unstable `wasm-c-abi` flag
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/compiler-flags/wasm-c-abi.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/wasm-c-abi.md b/src/doc/unstable-book/src/compiler-flags/wasm-c-abi.md
new file mode 100644
index 00000000000..138a98dbe3d
--- /dev/null
+++ b/src/doc/unstable-book/src/compiler-flags/wasm-c-abi.md
@@ -0,0 +1,10 @@
+# `wasm-c-abi`
+
+This option controls whether Rust uses the spec-compliant C ABI when compiling
+for the `wasm32-unknown-unknown` target.
+
+This makes it possible to be ABI-compatible with all other spec-compliant Wasm
+like Rusts `wasm32-wasi`.
+
+This compiler flag is perma-unstable, as it will be enabled by default in the
+future with no option to fall back to the old non-spec-compliant ABI.