mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
WIP - Initial commit of devcontainer
This commit is contained in:
parent
1adccc0573
commit
74cb70590c
3 changed files with 38 additions and 0 deletions
28
.devcontainer/devcontainer.json
Normal file
28
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "dioxus",
|
||||
"image": "mcr.microsoft.com/devcontainers/rust:latest",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/common-utils:2": {},
|
||||
"./local-features/linux": {}
|
||||
},
|
||||
"containerEnv": {
|
||||
"RUST_LOG": "INFO"
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {
|
||||
"files.watcherExclude": {
|
||||
"**/target/**": true
|
||||
},
|
||||
"[rust]": {
|
||||
"editor.formatOnSave": true
|
||||
}
|
||||
},
|
||||
"extensions": [
|
||||
"rust-lang.rust-analyzer",
|
||||
"tamasfe.even-better-toml",
|
||||
"serayuzgur.crates"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"id": "linux",
|
||||
"version": "0.0.1"
|
||||
}
|
6
.devcontainer/local-features/linux/install.sh
Normal file
6
.devcontainer/local-features/linux/install.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
echo "Update Apt Database"
|
||||
sudo apt-get update
|
||||
|
||||
echo "Install Webkit Dependencies"
|
||||
sudo apt-get -qq install build-essential libwebkit2gtk-4.0-dev libgtk-3-dev libayatana-appindicator3-dev
|
Loading…
Reference in a new issue