This is a simple "Hello World" program written in Rust.
fn main() {
println!("Hello, World!");
}
The devcontainer.json
file contains settings that define the development environment inside a Docker container. Some key specifications include:
- The name of the container ("Rust")
- Building the container from a Dockerfile in the current directory
- Extensions to install in VS Code, such as
rust-analyzer
andaws-code-whisperer
- Settings for
rust-analyzer
, such as enabling auto-reloading on cargo changes
This configuration facilitates opening the Rust project folder in a containerized development environment using the VS Code Codespaces.
- Clone this repo and create a new Codespace configuration with dev containers in github.
- You can now develop inside the containerized environment.