Skip to Content
ASE

Rust

The Rust toolchain through rustup, with rustc and cargo for building and running crates.

Usage

.devcontainer/devcontainer.json
{
  "features": {
    "ghcr.io/hansehart/devcontainer-features/rust:2": {}
  }
}

Version 2.2.0, see the changelog for what changed.

Options

OptionDefaultDescription
versionlatestChannel (latest|beta|nightly), a minor line (major.minor), or an exact version (major.minor.patch).
stateDirIf 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.
rustupVersionlatestrustup channel (latest) or an exact version (major.minor.patch).

Customizations

Open Secure Software Suite

The hosts the tool reaches:

HostPortsSecretFor
index.crates.io443Crate index cargo resolves dependencies from
static.crates.io443Crate downloads
static.rust-lang.org443Components and toolchains from rustup

The variables that set its defaults:

VariableValueFor
CARGO_HOME${stateDir}Cargo's installed tools and registry cache in the state dir
RUSTUP_AUTO_INSTALL0With 0, toolchains a project asks for install on explicit request

VS Code

The extensions it installs:

On this page