Linux command
rustup-run 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Run command with toolchain
rustup run stable cargo build
Run with nightly
rustup run nightly rustc --version
Run specific version
rustup run [1.70.0] cargo test
说明
rustup run executes a command with a specific Rust toolchain. Temporarily uses specified toolchain regardless of default or override settings.
参数
- --install
- Install toolchain if missing.
FAQ
What is the rustup-run command used for?
rustup run executes a command with a specific Rust toolchain. Temporarily uses specified toolchain regardless of default or override settings.
How do I run a basic rustup-run example?
Run `rustup run stable cargo build` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --install do in rustup-run?
Install toolchain if missing.