mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 06:38:03 +08:00
* Pin cargo-binstall and cargo-about and cross-reference all tool version pins * Pin the cargo-binstall GitHub Action to its release tag * Use a version floor for cargo-about and drop the Nix sync notices
48 lines
2.0 KiB
JSON
48 lines
2.0 KiB
JSON
{
|
|
"image": "mcr.microsoft.com/devcontainers/base:debian",
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/rust:1": {
|
|
"profile": "default",
|
|
"targets": "wasm32-unknown-unknown"
|
|
},
|
|
"ghcr.io/devcontainers/features/node:1": {
|
|
// NOTICE: keep in sync with `.nvmrc`
|
|
"version": "24"
|
|
}
|
|
},
|
|
// NOTICE: keep these tool versions in sync with `.github/workflows/build.yml`, `.nix/dev.nix` and `.nix/pkgs/graphite.nix` (wasm-bindgen-cli), `tools/cargo-run/src/requirements.rs` (wasm-bindgen-cli, cargo-about), `tools/cargo-run/src/requirements/wasm_opt.rs` (Binaryen), and the `wasm-bindgen` crate in `Cargo.toml`
|
|
"containerEnv": {
|
|
"WASM_BINDGEN_CLI_VERSION": "0.2.121",
|
|
"CARGO_ABOUT_VERSION": "0.9.2",
|
|
"BINARYEN_VERSION": "130",
|
|
"CARGO_BINSTALL_VERSION": "1.23.0"
|
|
},
|
|
"onCreateCommand": {
|
|
"Install cargo-about and wasm-bindgen-cli": "curl -sSfL https://github.com/cargo-bins/cargo-binstall/releases/download/v$CARGO_BINSTALL_VERSION/cargo-binstall-$(uname -m)-unknown-linux-musl.tgz | tar xz -C $CARGO_HOME/bin && BINSTALL_DISABLE_TELEMETRY=true cargo binstall --no-confirm cargo-about@$CARGO_ABOUT_VERSION wasm-bindgen-cli@$WASM_BINDGEN_CLI_VERSION",
|
|
"Install Binaryen wasm-opt": "curl -sSfL https://github.com/WebAssembly/binaryen/releases/download/version_$BINARYEN_VERSION/binaryen-version_$BINARYEN_VERSION-$(uname -m)-linux.tar.gz | tar xz -C $CARGO_HOME/bin --strip-components=2 binaryen-version_$BINARYEN_VERSION/bin/wasm-opt"
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
// NOTE: Keep this in sync with `.vscode/extensions.json`
|
|
"extensions": [
|
|
// Rust
|
|
"rust-lang.rust-analyzer",
|
|
"tamasfe.even-better-toml",
|
|
// Web
|
|
"dbaeumer.vscode-eslint",
|
|
"esbenp.prettier-vscode",
|
|
"svelte.svelte-vscode",
|
|
"vitaliymaz.vscode-svg-previewer",
|
|
// Code quality
|
|
"wayou.vscode-todo-highlight",
|
|
"streetsidesoftware.code-spell-checker",
|
|
// Git
|
|
"mhutchie.git-graph",
|
|
"qezhu.gitlink",
|
|
// Helpful
|
|
"wmaurer.change-case"
|
|
]
|
|
}
|
|
}
|
|
}
|