Rust
The Rust toolchain through rustup, with rustc and cargo for building and running crates.
Usage
{
"features": {
"ghcr.io/hansehart/devcontainer-features/rust:2": {}
}
}Version 2.2.0, see the changelog for what changed.
Options
| Option | Default | Description |
|---|---|---|
version | latest | Channel (latest|beta|nightly), a minor line (major.minor), or an exact version (major.minor.patch). |
stateDir | If set, puts this feature's data at this path, which must be inside the remote user's home. Mount a volume there to persist it across rebuilds. | |
rustupVersion | latest | rustup channel (latest) or an exact version (major.minor.patch). |
Customizations
Open Secure Software Suite
The hosts the tool reaches:
| Host | Ports | Secret | For |
|---|---|---|---|
index.crates.io | 443 | Crate index cargo resolves dependencies from | |
static.crates.io | 443 | Crate downloads | |
static.rust-lang.org | 443 | Components and toolchains from rustup |
The variables that set its defaults:
| Variable | Value | For |
|---|---|---|
CARGO_HOME | ${stateDir} | Cargo's installed tools and registry cache in the state dir |
RUSTUP_AUTO_INSTALL | 0 | With 0, toolchains a project asks for install on explicit request |
VS Code
The extensions it installs: