See https://github.com/rust-lang/rust/pull/45905 and https://www.hellorust.com/setup/wasm-target/. FYI, https://github.com/alexcrichton/wasm-gc may reduce the output size.