diff --git a/.gitignore b/.gitignore index 9026c77..17d1d0e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /target -.vscode +.vscode/* +!.vscode/launch.json +!.vscode/extensions.json \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..3f144cd --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "vadimcn.vscode-lldb", + "ymotongpoo.licenser", + "rust-lang.rust-analyzer" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..3aea09d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,45 @@ +{ + // 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 'monstrous'", + "cargo": { + "args": [ + "build", + "--bin=monstrous", + "--package=monstrous" + ], + "filter": { + "name": "monstrous", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in executable 'monstrous'", + "cargo": { + "args": [ + "test", + "--no-run", + "--bin=monstrous", + "--package=monstrous" + ], + "filter": { + "name": "monstrous", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index bd7a5bc..e1dcca9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +// Copyright 2022 ModZero. +// SPDX-License-Identifier: AGPL-3.0-or-later + use bevy::{ input::mouse::MouseMotion, prelude::*, @@ -76,3 +79,12 @@ fn main() { .add_system(mouse_motion) .run(); } + +#[cfg(test)] +mod tests { + #[test] + fn test_true() +{ + assert!(false); +} +}