aboutsummaryrefslogtreecommitdiff
path: root/src/rust/devcontainer-feature.json
blob: fa9bfbface5d05a06eb12103b32d5037b6127076 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
    "id": "rust",
    "version": "1.0.5",
    "name": "Rust",
    "documentationURL": "https://github.com/devcontainers/features/tree/main/src/rust",
    "description": "Installs Rust, common Rust utilities, and their required dependencies",
    "options": {
        "version": {
            "type": "string",
            "proposals": [
                "latest",
                "none",
                "1.63",
                "1.62",
                "1.61"
            ],
            "default": "latest",
            "description": "Select or enter a version of Rust to install."
        },
        "profile": {
            "type": "string",
            "proposals": [
                "minimal",
                "default",
                "complete"
            ],
            "default": "minimal",
            "description": "Select a rustup install profile."
        }
    },
    "customizations": {
        "vscode": {
            "extensions": [
                "vadimcn.vscode-lldb",
                "mutantdino.resourcemonitor",
                "rust-lang.rust-analyzer",
                "tamasfe.even-better-toml",
                "serayuzgur.crates"
            ],
            "settings": {
                "lldb.executable": "/usr/bin/lldb",
                "files.watcherExclude": {
                    "**/target/**": true
                },
                "rust-analyzer.checkOnSave.command": "clippy"
            }
        }
    },
    "containerEnv": {
        "CARGO_HOME": "/usr/local/cargo",
        "RUSTUP_HOME": "/usr/local/rustup",
        "PATH": "${CARGO_HOME}/bin:${PATH}"
    },
    "capAdd": [
        "SYS_PTRACE"
    ],
    "securityOpt": [
        "seccomp=unconfined"
    ]
}