Browse Source

WIP - Initial commit of devcontainer

stephenandary 2 years ago
parent
commit
74cb70590c

+ 28 - 0
.devcontainer/devcontainer.json

@@ -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"
+            ]
+        }
+    }
+}

+ 4 - 0
.devcontainer/local-features/linux/devcontainer-feature.json

@@ -0,0 +1,4 @@
+{
+    "id": "linux",
+    "version": "0.0.1"
+}

+ 6 - 0
.devcontainer/local-features/linux/install.sh

@@ -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