Linux command
rustup-target 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List targets
rustup target list
Add target
rustup target add [wasm32-unknown-unknown]
Add ARM target
rustup target add aarch64-unknown-linux-gnu
Remove target
rustup target remove [target]
说明
rustup target manages cross-compilation targets. Add targets to compile for different platforms (ARM, WebAssembly, Windows, etc.) from your current system.
参数
- list
- List available targets.
- add _target_
- Install target.
- remove _target_
- Uninstall target.
- --toolchain _name_
- Target specific toolchain.
FAQ
What is the rustup-target command used for?
rustup target manages cross-compilation targets. Add targets to compile for different platforms (ARM, WebAssembly, Windows, etc.) from your current system.
How do I run a basic rustup-target example?
Run `rustup target list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list do in rustup-target?
List available targets.