浏览代码

Create devcontainer.json

Spenser Black 2 年之前
父节点
当前提交
b1182e7cf5
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      .devcontainer/devcontainer.json

+ 14 - 0
.devcontainer/devcontainer.json

@@ -0,0 +1,14 @@
+{
+    "name": "Rust",
+    "image": "mcr.microsoft.com/devcontainers/rust:0-1-bullseye",
+    "features": {
+        "ghcr.io/devcontainers/features/docker-in-docker:2": {}
+    },
+    "portsAttributes": {
+        "8080": {
+            "label": "libreddit",
+            "onAutoForward": "notify"
+        }
+    },
+    "postCreateCommand": "cargo build"
+}