From eb363a8bc04bf14673b04f466a367e06b54d2c9e Mon Sep 17 00:00:00 2001 From: Bolatan Ibrahim Date: Thu, 21 Nov 2024 19:21:18 +0000 Subject: [PATCH 1/2] Update rust base image --- .devcontainer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). From b3a8d4babeb9a210dd345b695947c1341f685791 Mon Sep 17 00:00:00 2001 From: Bolatan Ibrahim Date: Thu, 21 Nov 2024 19:22:41 +0000 Subject: [PATCH 2/2] Add missing container setup script --- .devcontainer/devcontainer.json | 4 ++-- setup.sh | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 setup.sh 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