From 7b684b4994d02e8eaf4e1e0439f235dcb578c005 Mon Sep 17 00:00:00 2001 From: Zoltan Varadi Date: Wed, 13 Dec 2023 00:25:16 +0900 Subject: [PATCH] cargo new --- .vscode/settings.json | 6 +++++- Cargo.lock => guessing_game/Cargo.lock | 0 Cargo.toml => guessing_game/Cargo.toml | 0 README.md => guessing_game/README.md | 0 {src => guessing_game/src}/main.rs | 0 hello_world/Cargo.lock | 7 +++++++ hello_world/Cargo.toml | 8 ++++++++ hello_world/src/main.rs | 3 +++ variables/Cargo.toml | 8 ++++++++ variables/src/main.rs | 3 +++ 10 files changed, 34 insertions(+), 1 deletion(-) rename Cargo.lock => guessing_game/Cargo.lock (100%) rename Cargo.toml => guessing_game/Cargo.toml (100%) rename README.md => guessing_game/README.md (100%) rename {src => guessing_game/src}/main.rs (100%) create mode 100644 hello_world/Cargo.lock create mode 100644 hello_world/Cargo.toml create mode 100644 hello_world/src/main.rs create mode 100644 variables/Cargo.toml create mode 100644 variables/src/main.rs diff --git a/.vscode/settings.json b/.vscode/settings.json index 066a4d1..749b462 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,7 @@ { - "editor.inlayHints.enabled": "offUnlessPressed" + "editor.inlayHints.enabled": "offUnlessPressed", + "rust-analyzer.linkedProjects": [ + "./guessing_game/Cargo.toml", + "./guessing_game/Cargo.toml" + ] } diff --git a/Cargo.lock b/guessing_game/Cargo.lock similarity index 100% rename from Cargo.lock rename to guessing_game/Cargo.lock diff --git a/Cargo.toml b/guessing_game/Cargo.toml similarity index 100% rename from Cargo.toml rename to guessing_game/Cargo.toml diff --git a/README.md b/guessing_game/README.md similarity index 100% rename from README.md rename to guessing_game/README.md diff --git a/src/main.rs b/guessing_game/src/main.rs similarity index 100% rename from src/main.rs rename to guessing_game/src/main.rs diff --git a/hello_world/Cargo.lock b/hello_world/Cargo.lock new file mode 100644 index 0000000..3496d5a --- /dev/null +++ b/hello_world/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "hello_world" +version = "0.1.0" diff --git a/hello_world/Cargo.toml b/hello_world/Cargo.toml new file mode 100644 index 0000000..624cb06 --- /dev/null +++ b/hello_world/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "hello_world" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/hello_world/src/main.rs b/hello_world/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/hello_world/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/variables/Cargo.toml b/variables/Cargo.toml new file mode 100644 index 0000000..f1cad76 --- /dev/null +++ b/variables/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "variables" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/variables/src/main.rs b/variables/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/variables/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}