Installation
Programs
You will need to install:
I use macOS as my development platform of choice, and my dot files are configured for this to work out of the box. At the time of writing, and without my dot files, I found that I needed to add the CLI command, code
, to my $PATH
environment variable for VSCode version 1.55.0:
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH"
Cargo add subcommand
At the time of writing, there’s an open ticket (Subcommand to add a new dependency to Cargo.toml #2179) for Rust to include cargo add
in a standard installation of Rust. To add this to your development environment, run:
cargo install cargo-edit
Now you’ll be able to update Cargo.toml
in your project folder without directly editing it. Later in this article, I demonstrate building an application with Nannou outside of devcontainer. If I wanted to add Nannou 0.15 without manually editing Cargo.toml
, I would run:
cargo add nannou@0.15
VSCode Plug-ins
I installed the following plug-ins by running this command:
- Docker for Visual Studio Code
Identifier:ms-azuretools.vscode-docker
- rust-analyzer
Identifier:matklad.rust-analyzer
- CodeLLDB
Identifier:vadimcn.vscode-lldb
- Code Runner
Identifier:formulahendry.code-runner
- Remote – Containers
Identifier:ms-vscode-remote.remote-containers
for pkg in \
"ms-azuretools.vscode-docker" \
"matklad.rust-analyzer" \
"vadimcn.vscode-lldb" \
"formulahendry.code-runner" \
"ms-vscode-remote.remote-containers" \
;
do code --install-extension "$pkg";
done;
Table of Contents