Files
rust/compiler
Jonathan Brouwer e34cec62bb Rollup merge of #156571 - daxpedda:wasm-main, r=alexcrichton
Disable `main_needs_argc_argv` for Wasm

AFAIU this explains to the "Rust Runtime" that `main()` doesn't need `argc`/`argv`. Newer Wasm targets have explicitly disabled this, this PR changes it so that the base Wasm configuration affecting all Wasm targets disables this now.

This affects the following targets:
- `wasm32-unknown-unknown`
- `wasm32v1-none`
- `wasm64-unknown-unknown`

The only Wasm target where `main_needs_argc_argv` is still enabled is `wasm32-unknown-emscripten`. @hoodmane let me know and I can remove it there as well.

Credit goes to @Spxg for stumbling on this.

r? @alexcrichton
2026-05-15 20:11:44 +02:00
..
2026-05-12 17:09:19 +02:00
2026-05-14 16:54:53 +02:00
2026-05-14 13:20:57 +10:00
2026-05-12 17:09:19 +02:00
2026-05-12 21:58:50 +02:00
2026-05-12 17:09:19 +02:00
2026-05-12 21:58:50 +02:00
2026-05-12 17:09:19 +02:00
2026-05-12 21:58:50 +02:00
2026-05-12 21:58:50 +02:00