From 369d11587339ce74f8ebc76f2607fe55545eaf7d Mon Sep 17 00:00:00 2001 From: garhve Date: Tue, 20 Dec 2022 11:04:25 +0800 Subject: Build small project following the book --- rust/theBook/chapter-1-getting-started/helloCargo/Cargo.toml | 8 ++++++++ rust/theBook/chapter-1-getting-started/helloCargo/src/main.rs | 3 +++ rust/theBook/chapter-1-getting-started/helloworld.rs | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 rust/theBook/chapter-1-getting-started/helloCargo/Cargo.toml create mode 100644 rust/theBook/chapter-1-getting-started/helloCargo/src/main.rs create mode 100644 rust/theBook/chapter-1-getting-started/helloworld.rs (limited to 'rust/theBook/chapter-1-getting-started') diff --git a/rust/theBook/chapter-1-getting-started/helloCargo/Cargo.toml b/rust/theBook/chapter-1-getting-started/helloCargo/Cargo.toml new file mode 100644 index 0000000..ff74a1b --- /dev/null +++ b/rust/theBook/chapter-1-getting-started/helloCargo/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "helloCargo" +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/rust/theBook/chapter-1-getting-started/helloCargo/src/main.rs b/rust/theBook/chapter-1-getting-started/helloCargo/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/rust/theBook/chapter-1-getting-started/helloCargo/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/rust/theBook/chapter-1-getting-started/helloworld.rs b/rust/theBook/chapter-1-getting-started/helloworld.rs new file mode 100644 index 0000000..f6320bc --- /dev/null +++ b/rust/theBook/chapter-1-getting-started/helloworld.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello World"); +} -- cgit v1.2.3-70-g09d2