{
	"name": "Rust",
	"dockerComposeFile": "docker-compose.yml",
	"service": "app",
	"workspaceFolder": "/workspace",

	"postCreateCommand": "SQLX_OFFLINE=1 cargo run -- database migrate",
	"settings": { 
		"lldb.executable": "/usr/bin/lldb",
		"sqltools.connections": [{
			"name": "Container database",
			"driver": "PostgreSQL",
			"previewLimit": 50,
			"server": "localhost",
			"port": 5432,
			"database": "postgres",
			"username": "postgres",
			"password": "postgres"
		}],
		"files.watcherExclude": {
			"**/target/**": true
		}
	},

	"forwardPorts": [8080],
	"portsAttributes": {
		"8080": {
			"label": "Application"
		}
	},

	"extensions": [
		"bungcip.better-toml",
		"vadimcn.vscode-lldb",
		"mutantdino.resourcemonitor",
		"matklad.rust-analyzer",
		"mtxr.sqltools",
		"mtxr.sqltools-driver-pg"
	]
}
