Introduce perma-unstable wasm-c-abi flag

This commit is contained in:
daxpedda 2024-02-27 23:06:44 +01:00
parent 5bc7b9ac8a
commit f09c19ac3a
No known key found for this signature in database
GPG key ID: 43D62A3EA388E46F
10 changed files with 94 additions and 13 deletions

View file

@ -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.