diff --git a/hello_world/.vscode/settings.json b/hello_world/.vscode/settings.json new file mode 100644 index 0000000..4d7120d --- /dev/null +++ b/hello_world/.vscode/settings.json @@ -0,0 +1,3 @@ +[{ + "rust-analyzer.cargo.buildScripts.overrideCommand": "cargo check --quiet --workspace --all-targets" +}] \ No newline at end of file diff --git a/hello_world/src/main.rs b/hello_world/src/main.rs index 6e2bc23..9b63d21 100644 --- a/hello_world/src/main.rs +++ b/hello_world/src/main.rs @@ -1,3 +1,9 @@ +/* +To actually run hello world in vs code, we need to set the following in ``Preferences: Open user settings'' or the program execution fails +How fucked up is that? +[{ + "rust-analyzer.cargo.buildScripts.overrideCommand": "cargo check --quiet --workspace --all-targets" // here, we removed --message-format=json from the parameter list +}]*/ fn main() { - println!("[\"Hello, world!\"]"); + println!("Hello, world!"); }