From 3383e71a9dcef34da324a0a2f91bd82c9b51beed Mon Sep 17 00:00:00 2001 From: yinxue <2643126914@qq.com> Date: Sun, 26 Oct 2025 14:56:11 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86devcontainer.json?= =?UTF-8?q?=E7=9A=84=E7=94=9F=E5=91=BD=E5=91=A8=E6=9C=9F=E9=92=A9=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 874d8d6..b34f366 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,6 @@ { "name": "Rust", "image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye", - - "postStartCommand": "cargo build && clear", - "customizations": { "vscode": { "settings": {}, @@ -44,11 +41,14 @@ } }, + "forwardPorts": [8080], "portsAttributes": { "8080": { "label": "Rust Application", "onAutoForward": "notify" } - } + }, + + "postAttachCommand": "cargo build && clear" } \ No newline at end of file