- install C++ Build Tools
- install Rust
- install
rust-analyzer
by Visual Studio MarketPlace - setup rust-analyzer
rustup component add rust-src
rustup component add rust-analysis
rustup component add rls
$ cargo new hello_world
$ cd hello_world/src
$ rustc main.rs
$ ./main
Hello, world!
$ cargo run
- Dockerfile
ARG VARIANT="buster"
FROM mcr.microsoft.com/vscode/devcontainers/rust:0-${VARIANT}
Admin
- Open command palette
Remote-Containes: Add Development Container Configuration Files...
Rust
buster
- GitHub CLI
Developers
- Open a Remote Window
- Add Proxy config to
.devcontainer/devcontainer.json
- Add Proxy config to
"build": {
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "buster",
"PROXY": "http://xxxx:8080" // here
}
},
- Reopen in Container