diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 1d5d2f8..9ca17a6 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/devcontainers/rust:0-1-bullseye +FROM mcr.microsoft.com/devcontainers/rust:1-1-bullseye # Include lld linker to improve build times either by using environment variable # RUSTFLAGS="-C link-arg=-fuse-ld=lld" or with Cargo's configuration file (i.e see .cargo/config.toml). diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6bfac6a..144bbed 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -21,7 +21,7 @@ // Configure properties specific to VS Code. "vscode": { // Set *default* container specific settings.json values on container create. - "settings": { + "settings": { "lldb.executable": "/usr/bin/lldb", // VS Code don't watch files under ./target "files.watcherExclude": { @@ -29,7 +29,7 @@ }, "rust-analyzer.checkOnSave.command": "clippy" }, - + // Add the IDs of extensions you want installed when the container is created. "extensions": [ "rust-lang.rust-analyzer", diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..ad4a644 --- /dev/null +++ b/setup.sh @@ -0,0 +1,10 @@ +!#/bin/bash + +# Merge the bashrc file provided in the repository with the one in the home directory. +cat bashrc >> ~/.bashrc + +# Source the bashrc file to apply the changes. +source ~/.bashrc + +# Print Rust version. +rustc --version