Skip to content

Commit 497b6fd

Browse files
committed
Document =legacy disables warnings
1 parent 0f710f6 commit 497b6fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/c-abi-changes-for-wasm32-unknown-unknown.md

+6
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ you. There are a few options at your disposal but they all have their downsides:
230230
stable Rust. The downside of this, however, is that you may not be able to
231231
easily change or update your C ABI in some situations.
232232

233+
4. Update to Rust nightly as your compiler and pass `-Zwasm-c-abi=legacy`. This
234+
will silence compiler warnings for now but be aware that the ABI will still
235+
change in the future and the `-Zwasm-c-abi=legacy` option will be removed
236+
entirely. When the `-Zwasm-c-abi=legacy` option is removed the only option
237+
will be the standard C ABI, what `-Zwasm-c-abi=spec` today enables.
238+
233239
If you have uncertainties, questions, or difficulties, feel free to reach out on
234240
[the tracking issue for the future-incompat warning][tracking] or on Zulip.
235241

0 commit comments

Comments
 (0)