aboutsummaryrefslogtreecommitdiff
path: root/devbox.json.back
blob: ff6dc1edad0ecc948f9f43a6ff16f48eca0d1654 (plain)
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
{
  "packages": [
    "rustup@latest",
    "libiconv@latest",
    "openssl@latest"
  ],
  "shell": {
    "init_hook": [
      "projectDir=$PWD/.devbox",
      "echo $projectDir",
      "rustupHomeDir=\"$projectDir\"/.rustup",
      "mkdir -p $rustupHomeDir",
      "export RUSTUP_HOME=$rustupHomeDir",
      "export LIBRARY_PATH=$LIBRARY_PATH:\"$projectDir/nix/profile/default/lib\"",
      "rustup default stable",
      "rustup component add rust-src",
      "rustup component add rust-analyzer",
      "cargo fetch"
    ],
    "scripts": {
      "test":       "cargo test -- --show-output",
      "start":      "cargo run",
      "build-docs": "cargo doc"
    }
  }
}