{ "name": "Rust (Windows cross-compile)", "build": { "dockerfile": "Dockerfile" }, // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], "runArgs": ["--network=host"], // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "cargo fetch", // Configure tool-specific properties. "customizations": { "vscode": { "settings": { // Without these, every `windows` crate item is cfg-ed out on Linux // and rust-analyzer reports the whole crate as errors. "rust-analyzer.cargo.target": "x86_64-pc-windows-gnu", "rust-analyzer.check.allTargets": false }, "extensions": [ "rust-lang.rust-analyzer", "tamasfe.even-better-toml" ] } } // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" }