Skip to content

Commit 0263cb9

Browse files
committed
Initial version
0 parents  commit 0263cb9

14 files changed

+1021
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

.vscode/extensions.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// WARNING: autogenerated by cargo-vsc, may be overwritten if this comment remains!
2+
{
3+
"recommendations": [
4+
"matklad.rust-analyzer",
5+
"ms-vscode.cpptools",
6+
]
7+
}

.vscode/launch.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// WARNING: autogenerated by cargo-vsc, may be overwritten if this comment remains!
2+
{
3+
"version": "0.2.0",
4+
"configurations": [
5+
// cargo-vsc
6+
{
7+
"name": "cargo-vsc • debug",
8+
"type": "cppvsdbg",
9+
"request": "launch",
10+
"internalConsoleOptions": "openOnSessionStart",
11+
"enableDebugHeap": true,
12+
"preLaunchTask": "cargo build --package cargo-vsc --bin cargo-vsc",
13+
"program": "${workspaceFolder}/target/debug/cargo-vsc.exe",
14+
"cwd": "${workspaceFolder}",
15+
"environment": [ { "name": "RUST_BACKTRACE", "value": "1" } ],
16+
},
17+
{
18+
"name": "cargo-vsc • release",
19+
"type": "cppvsdbg",
20+
"request": "launch",
21+
"internalConsoleOptions": "openOnSessionStart",
22+
"enableDebugHeap": false,
23+
"preLaunchTask": "cargo build --package cargo-vsc --bin cargo-vsc --release",
24+
"program": "${workspaceFolder}/target/release/cargo-vsc.exe",
25+
"cwd": "${workspaceFolder}",
26+
"environment": [ { "name": "RUST_BACKTRACE", "value": "1" } ],
27+
},
28+
]
29+
}

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// WARNING: autogenerated by cargo-vsc, may be overwritten if this comment remains!
2+
{
3+
"files.exclude": {
4+
"/**/.git": true,
5+
"/target/*/*/*": true,
6+
}
7+
}

.vscode/tasks.json

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
// WARNING: autogenerated by cargo-vsc, may be overwritten if this comment remains!
2+
{
3+
"version": "2.0.0",
4+
"problemMatcher": "$rustc",
5+
"tasks": [
6+
// entry points
7+
{
8+
"label": "default-build",
9+
"dependsOrder": "sequence",
10+
"dependsOn": [ "fetch", "check", "test", "build" ],
11+
"group": { "kind": "build", "isDefault": true }
12+
},
13+
14+
15+
16+
// fetch
17+
{
18+
"label": "fetch",
19+
"dependsOn": [
20+
"cargo fetch",
21+
]
22+
},
23+
{
24+
"label": "cargo fetch",
25+
"command": "cargo fetch",
26+
"type": "shell",
27+
"presentation": { "group": "fetch" },
28+
},
29+
30+
31+
32+
// check
33+
{
34+
"label": "check",
35+
"command": "cargo check --frozen --all-targets",
36+
"type": "shell",
37+
"presentation": { "group": "check" },
38+
"problemMatcher": { "base": "$rustc", "owner": "check", "source": "check" },
39+
},
40+
41+
42+
43+
// test
44+
{
45+
"label": "test",
46+
"command": "cargo test --frozen",
47+
"type": "shell",
48+
"presentation": { "group": "test" },
49+
"problemMatcher": { "base": "$rustc", "owner": "test", "source": "test" },
50+
},
51+
52+
53+
54+
// build
55+
{
56+
"label": "build",
57+
"command": "cargo build --frozen --all-targets",
58+
"type": "shell",
59+
"presentation": { "group": "build" },
60+
"problemMatcher": { "base": "$rustc", "owner": "build", "source": "build" },
61+
},
62+
63+
64+
65+
// cargo-vsc
66+
{
67+
"label": "cargo build --package cargo-vsc --bin cargo-vsc",
68+
"command": "cargo build --package cargo-vsc --bin cargo-vsc",
69+
"type": "shell",
70+
"problemMatcher": "$rustc",
71+
"presentation": { "clear": true, "panel": "shared", "reveal": "always" },
72+
},
73+
{
74+
"label": "cargo build --package cargo-vsc --bin cargo-vsc --release",
75+
"command": "cargo build --package cargo-vsc --bin cargo-vsc --release",
76+
"type": "shell",
77+
"problemMatcher": "$rustc",
78+
"presentation": { "clear": true, "panel": "shared", "reveal": "always" },
79+
},
80+
{
81+
"label": "cargo doc --package cargo-vsc --bin cargo-vsc",
82+
"command": "cargo +nightly doc --package cargo-vsc --bin cargo-vsc || cargo doc --package cargo-vsc --bin cargo-vsc",
83+
"type": "shell",
84+
"presentation": { "clear": true, "panel": "shared", "reveal": "always" },
85+
},
86+
{
87+
"label": "build & open local documentation (cargo-vsc)",
88+
"windows": { "command": "start \"\" \"${workspaceFolder}\\target\\doc\\cargo_vsc\\index.html\"" },
89+
"linux": { "command": "xdg-open \"${workspaceFolder}\\target\\doc\\cargo_vsc\\index.html\"" },
90+
"osx": { "command": "open \"${workspaceFolder}\\target\\doc\\cargo_vsc\\index.html\"" },
91+
"type": "shell",
92+
"presentation": { "clear": true, "panel": "shared", "reveal": "silent" },
93+
"dependsOn": [ "cargo doc --package cargo-vsc --bin cargo-vsc" ],
94+
},
95+
{
96+
"label": "open repository (cargo-vsc)",
97+
"windows": { "command": "start \"\" \"https://github.com/MaulingMonkey/cargo-vsc\"" },
98+
"linux": { "command": "xdg-open \"https://github.com/MaulingMonkey/cargo-vsc\"" },
99+
"osx": { "command": "open \"https://github.com/MaulingMonkey/cargo-vsc\"" },
100+
"type": "shell",
101+
"presentation": { "clear": true, "panel": "shared", "reveal": "silent" },
102+
},
103+
{
104+
"label": "open documentation (cargo-vsc)",
105+
"windows": { "command": "start \"\" \"https://docs.rs/cargo-vsc\"" },
106+
"linux": { "command": "xdg-open \"https://docs.rs/cargo-vsc\"" },
107+
"osx": { "command": "open \"https://docs.rs/cargo-vsc\"" },
108+
"type": "shell",
109+
"presentation": { "clear": true, "panel": "shared", "reveal": "silent" },
110+
},
111+
]
112+
}

Cargo.lock

+97
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# https://doc.rust-lang.org/cargo/reference/manifest.html
2+
3+
[package]
4+
name = "cargo-vsc"
5+
version = "0.0.0-git"
6+
authors = ["MaulingMonkey <git@maulingmonkey.com>"]
7+
edition = "2018"
8+
repository = "https://github.com/MaulingMonkey/cargo-vsc"
9+
documentation = "https://docs.rs/cargo-vsc"
10+
license = "Apache-2.0 OR MIT"
11+
readme = "Readme.md"
12+
description = "autogenerate .vscode folders"
13+
keywords = ["cargo", "vscode"]
14+
categories = ["development-tools::cargo-plugins", "development-tools::debugging"]
15+
16+
[dependencies]
17+
serde = { version = "1", features = ["derive"] }
18+
serde_json = "1"
19+
toml = "0.5"

0 commit comments

Comments
 (0)