From 4ecda7885afdb9b10aa19c907bd65e01ee63dd91 Mon Sep 17 00:00:00 2001 From: unintendedfraud Date: Tue, 3 Oct 2023 16:49:19 +0200 Subject: [PATCH] setup --- .gitignore | 8 ++++++++ hello-world/Cargo.toml | 8 ++++++++ hello-world/src/main.rs | 3 +++ readme.md | 3 +++ 4 files changed, 22 insertions(+) create mode 100644 .gitignore create mode 100644 hello-world/Cargo.toml create mode 100644 hello-world/src/main.rs create mode 100644 readme.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a771ce --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +**/debug/ +**/target/ + +**/Cargo.lock + +**/*.rs.bk + +**/*.pdb diff --git a/hello-world/Cargo.toml b/hello-world/Cargo.toml new file mode 100644 index 0000000..4b9c151 --- /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/readme.md b/readme.md new file mode 100644 index 0000000..2fa2bcc --- /dev/null +++ b/readme.md @@ -0,0 +1,3 @@ +# Hands on rust + +Following the book