From 11f0fd7fd9673996d8d2381ade1a371f945f1875 Mon Sep 17 00:00:00 2001
From: Kyle VanderBeek <kylev@kylev.com>
Date: Sat, 9 Mar 2024 19:45:50 +0000
Subject: [PATCH] Convert to lightweight dev container; simplify.

Instead of running `rustup` on a multi-gigabyte general-purpose Linux base, use the premade devcontainers/rust:1 which closely tracks the rust toolchain releases. Rip out excess setup steps since devcontainers come with the repo checked out; just compile/update the binary.
---
 .devcontainer/devcontainer.json | 8 +-------
 .devcontainer/setup.sh          | 7 -------
 2 files changed, 1 insertion(+), 14 deletions(-)
 delete mode 100755 .devcontainer/setup.sh

diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index e1b2cec..59f9571 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,12 +1,6 @@
 {
-  "image": "mcr.microsoft.com/devcontainers/universal:2-linux",
-  "waitFor": "onCreateCommand",
-  "onCreateCommand": ".devcontainer/setup.sh",
+  "image": "mcr.microsoft.com/devcontainers/rust:1",
   "updateContentCommand": "cargo build",
-  "postCreateCommand": "",
-  "postAttachCommand": {
-    "server": "rustlings watch"
-  },
   "customizations": {
     "vscode": {
       "extensions": [
diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh
deleted file mode 100755
index 0e090a8..0000000
--- a/.devcontainer/setup.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-curl https://sh.rustup.rs -sSf | sh -s -- -y
-
-# Update current shell environment variables after install to find rustup
-. "$HOME/.cargo/env"
-rustup install stable
-bash install.sh