A Dev Container Feature that installs the Trunk WASM web application bundler and optionally adds the wasm32-unknown-unknown Rust target.
Add the feature to your devcontainer.json:
{
"features": {
"ghcr.io/mrhornsby/trunk-devcontainer-feature/trunk:1": {}
}
}{
"features": {
"ghcr.io/devcontainers/features/rust:1": {},
"ghcr.io/mrhornsby/trunk-devcontainer-feature/trunk:1": {}
}
}| Option | Type | Default | Description |
|---|---|---|---|
version |
string | latest |
Trunk version to install (e.g. 0.21.14) or latest |
installWasmTarget |
boolean | true |
Run rustup target add wasm32-unknown-unknown if rustup is available |
Install a specific version without the WASM target:
{
"features": {
"ghcr.io/mrhornsby/trunk-devcontainer-feature/trunk:1": {
"version": "0.21.14",
"installWasmTarget": false
}
}
}x86_64/amd64aarch64/arm64