diff options
author | garhve <git@garhve.com> | 2022-12-20 11:04:25 +0800 |
---|---|---|
committer | garhve <git@garhve.com> | 2022-12-20 11:04:25 +0800 |
commit | 369d11587339ce74f8ebc76f2607fe55545eaf7d (patch) | |
tree | 4b25c6f7e3aca08a90b25950f4f8e4430c4294bc /rust/theBook/chapter-1-getting-started | |
parent | 0f1b6d015243e55a38b1c1b7e8af66668e4e794d (diff) |
Build small project following the book
Diffstat (limited to 'rust/theBook/chapter-1-getting-started')
3 files changed, 14 insertions, 0 deletions
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"); +} |