From 5e9e4b1d5ee83d8f0f3f0f826b9af8f296098bbb Mon Sep 17 00:00:00 2001 From: Rowan Torbitzky-Lane Date: Wed, 19 Mar 2025 00:25:09 -0500 Subject: [PATCH] basic restructuring --- {hello_cargo => ch1/hello_cargo}/Cargo.lock | 0 {hello_cargo => ch1/hello_cargo}/Cargo.toml | 0 {hello_cargo => ch1/hello_cargo}/src/main.rs | 0 {hello_world => ch1/hello_world}/main | Bin {hello_world => ch1/hello_world}/main.rs | 0 {guessing_game => ch2/guessing_game}/Cargo.lock | 0 {guessing_game => ch2/guessing_game}/Cargo.toml | 0 {guessing_game => ch2/guessing_game}/src/main.rs | 0 ch3/variables/Cargo.toml | 6 ++++++ ch3/variables/src/main.rs | 3 +++ 10 files changed, 9 insertions(+) rename {hello_cargo => ch1/hello_cargo}/Cargo.lock (100%) rename {hello_cargo => ch1/hello_cargo}/Cargo.toml (100%) rename {hello_cargo => ch1/hello_cargo}/src/main.rs (100%) rename {hello_world => ch1/hello_world}/main (100%) rename {hello_world => ch1/hello_world}/main.rs (100%) rename {guessing_game => ch2/guessing_game}/Cargo.lock (100%) rename {guessing_game => ch2/guessing_game}/Cargo.toml (100%) rename {guessing_game => ch2/guessing_game}/src/main.rs (100%) create mode 100644 ch3/variables/Cargo.toml create mode 100644 ch3/variables/src/main.rs diff --git a/hello_cargo/Cargo.lock b/ch1/hello_cargo/Cargo.lock similarity index 100% rename from hello_cargo/Cargo.lock rename to ch1/hello_cargo/Cargo.lock diff --git a/hello_cargo/Cargo.toml b/ch1/hello_cargo/Cargo.toml similarity index 100% rename from hello_cargo/Cargo.toml rename to ch1/hello_cargo/Cargo.toml diff --git a/hello_cargo/src/main.rs b/ch1/hello_cargo/src/main.rs similarity index 100% rename from hello_cargo/src/main.rs rename to ch1/hello_cargo/src/main.rs diff --git a/hello_world/main b/ch1/hello_world/main similarity index 100% rename from hello_world/main rename to ch1/hello_world/main diff --git a/hello_world/main.rs b/ch1/hello_world/main.rs similarity index 100% rename from hello_world/main.rs rename to ch1/hello_world/main.rs diff --git a/guessing_game/Cargo.lock b/ch2/guessing_game/Cargo.lock similarity index 100% rename from guessing_game/Cargo.lock rename to ch2/guessing_game/Cargo.lock diff --git a/guessing_game/Cargo.toml b/ch2/guessing_game/Cargo.toml similarity index 100% rename from guessing_game/Cargo.toml rename to ch2/guessing_game/Cargo.toml diff --git a/guessing_game/src/main.rs b/ch2/guessing_game/src/main.rs similarity index 100% rename from guessing_game/src/main.rs rename to ch2/guessing_game/src/main.rs diff --git a/ch3/variables/Cargo.toml b/ch3/variables/Cargo.toml new file mode 100644 index 0000000..4da3b81 --- /dev/null +++ b/ch3/variables/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "variables" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/ch3/variables/src/main.rs b/ch3/variables/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/ch3/variables/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}