Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
KapDecy committed Apr 10, 2023
0 parents commit 88bfbdb
Show file tree
Hide file tree
Showing 16 changed files with 5,325 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.wasm32-unknown-unknown]
runner = "wasm-server-runner"
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# will have compiled files and executables
/debug/
/target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Visual Studio Code settings file
.vscode/settings.json
34 changes: 34 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'point-cloud-bevy'",
"cargo": {
"args": ["build", "--bin=point-cloud-bevy"]
},
"args": [],
"env": {
"CARGO_MANIFEST_DIR": "${workspaceFolder}"
},
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'point-cloud-bevy'",
"cargo": {
"args": ["test", "--no-run", "--bin=point-cloud-bevy"]
},
"args": [],
"env": {
"CARGO_MANIFEST_DIR": "${workspaceFolder}"
},
"cwd": "${workspaceFolder}"
}
]
}
204 changes: 204 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"label": "Test (fast compile)",
"detail": "Runs all tests",
"type": "shell",
"group": "test",
"command": "cargo t --workspace --features bevy/dynamic",
"options": {
"env": {
"RUST_LOG": "warn,point_cloud_bevy=trace"
}
},
"problemMatcher": ["$rustc"],
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"focus": true
}
},
{
"label": "Run release (fast compile)",
"detail": "Runs binary in release mode",
"type": "shell",
"group": "build",
"command": "cargo run --features bevy/dynamic --release",
"problemMatcher": ["$rustc"],
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"focus": true
}
},
{
"label": "Run debug (fast compile)",
"detail": "Runs binary in debug mode",
"type": "shell",
"group": "build",
"command": "cargo run --features bevy/dynamic",
"problemMatcher": ["$rustc"],
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"focus": true
}
},
{
"label": "Run w. editor-pls",
"detail": "Runs binary with editor-pls enabled",
"type": "shell",
"command": "cargo run --features editor",
"problemMatcher": ["$rustc"],
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"focus": true
}
},
{
"label": "Run w. inspector-egui",
"detail": "Runs binary with inspector-egui enabled",
"type": "shell",
"command": "cargo run --features inspector",
"problemMatcher": ["$rustc"],
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"focus": true
}
},
{
"label": "WASM development",
"detail": "Use cargo watch to run wasm-server-runner",
"type": "shell",
"group": "build",
"command": "cargo watch -- cargo run --target wasm32-unknown-unknown",
"problemMatcher": ["$rustc"],
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"focus": true
}
},
{
"label": "WASM development w. inspector-egui",
"detail": "Use cargo watch to run wasm-server-runner, inspector-egui enabled",
"type": "shell",
"group": "build",
"command": "cargo watch -- cargo run --target wasm32-unknown-unknown --features inspector",
"problemMatcher": ["$rustc"],
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"focus": true
}
},
{
"label": "Build point_cloud_bevy lib doc",
"detail": "Builds the documentation",
"type": "shell",
"command": "cargo doc --lib --all-features --no-deps",
"problemMatcher": ["$rustc"],
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"focus": true,
"clear": true
}
},
{
"label": "Open point_cloud_bevy lib doc",
"detail": "Open the documentation",
"type": "shell",
"command": "cargo doc --lib --all-features --no-deps --open",
"problemMatcher": ["$rustc"],
"dependsOn": "Build doc"
},
{
"label": "Update",
"detail": "Update dependencies (Cargo.lock)",
"type": "shell",
"command": "cargo update",
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"focus": true
}
},
{
"label": "Clippy",
"detail": "Look for Clippy errors",
"type": "shell",
"command": "cargo clippy --all-features --all-targets -- -D warnings",
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"focus": true
}
},
{
"label": "Format",
"detail": "Format all source",
"type": "shell",
"command": "cargo fmt --all --quiet",
"problemMatcher": [],
"presentation": {
"echo": false,
"reveal": "never",
"panel": "shared",
"showReuseMessage": false
}
},
{
"label": "Clean",
"detail": "Clean build artifacts",
"type": "shell",
"command": "cargo clean",
"problemMatcher": [],
"presentation": {
"echo": false,
"reveal": "never",
"panel": "shared",
"showReuseMessage": false
}
}
]
}
Loading

0 comments on commit 88bfbdb

Please sign in to comment.