Compare commits
	
		
			3 Commits
		
	
	
		
			1e5b2769b4
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 8866d7a3dc | |||
| 3383e71a9d | |||
| b8ce918291 | 
@@ -1,20 +1,16 @@
 | 
			
		||||
{
 | 
			
		||||
	"name": "Rust",
 | 
			
		||||
	"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
 | 
			
		||||
 | 
			
		||||
	// 先构建项目,但不自动运行
 | 
			
		||||
	"postStartCommand": "cargo build && clear",
 | 
			
		||||
 | 
			
		||||
	"customizations": {
 | 
			
		||||
		"vscode": {
 | 
			
		||||
			"settings": {},
 | 
			
		||||
			"extensions": [
 | 
			
		||||
				"streetsidesoftware.code-spell-checker",
 | 
			
		||||
				"rust-lang.rust-analyzer",  // 添加 Rust 语言支持
 | 
			
		||||
				"vadimcn.vscode-lldb"       // 添加 LLDB 调试器支持
 | 
			
		||||
				"rust-lang.rust-analyzer",  
 | 
			
		||||
				"vadimcn.vscode-lldb"       
 | 
			
		||||
			],
 | 
			
		||||
			
 | 
			
		||||
			// 添加调试配置
 | 
			
		||||
		
 | 
			
		||||
			"debug": {
 | 
			
		||||
				"configurations": [
 | 
			
		||||
					{
 | 
			
		||||
@@ -29,7 +25,6 @@
 | 
			
		||||
				]
 | 
			
		||||
			},
 | 
			
		||||
			
 | 
			
		||||
			// 添加构建任务
 | 
			
		||||
			"tasks": {
 | 
			
		||||
				"tasks": [
 | 
			
		||||
					{
 | 
			
		||||
@@ -45,13 +40,12 @@
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	
 | 
			
		||||
	// 转发应用端口(根据你的实际端口修改)
 | 
			
		||||
	"forwardPorts": [8080],
 | 
			
		||||
	"portsAttributes": {
 | 
			
		||||
		"8080": {
 | 
			
		||||
			"label": "Rust Application",
 | 
			
		||||
			"onAutoForward": "notify"
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	"postAttachCommand": "cargo build && clear"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user