A disposable Rust development environment with stable, beta, and nightly toolchains, cargo-watch, rustfmt, clippy, rust-analyzer, codelldb, and musl cross-compilation target pre-installed. Full IDE support via VS Code with debugger. Runs on 4 vCPU / 10 GiB RAM / 100 GiB disk.
rustc / cargo — stable, beta, nightlyrustfmt — code formatter — stable, beta, nightlyclippy — linter — stable, beta, nightlycargo-watch — recompile on file changerust-analyzer — IDE intelligence (VS Code)codelldb — native debugger (VS Code)x86_64-unknown-linux-musl for static binariescargo new hello && cd hello
cargo run
cargo +nightly run # run with nightly
cargo +beta build # build with beta
rustup show # list installed toolchains
cargo watch -x run # rerun on save
cargo watch -x test # retest on save
cargo watch -x "run -- --flag"
cargo fmt # format all files
cargo fmt -- --check # check without modifying
cargo clippy # lint with suggestions
cargo clippy -- -D warnings # treat warnings as errors
cargo build # debug build
cargo build --release # optimized build
# Static binary (musl)
cargo build --release --target x86_64-unknown-linux-musl
cargo test # run all tests
cargo test test_name # run specific test
cargo test -- --nocapture # show println! output
rustup show # installed toolchains
rustup toolchain list # all toolchains
rustc --version # active rustc version
cargo --version # active cargo version
rustup update # update all toolchains