I tried to make \'Hello World\' in Rust using this tutorial, but the build command is a bit verbose:
cargo +nightly build --target wasm32-unknown-unknown --relea
As listed in the Cargo documentation, you can create a .cargo/config and specify the target:
.cargo/config
[build] target = "my-custom-target"