From ceffdfb561c126753084581060f06468b354ac3a Mon Sep 17 00:00:00 2001 From: Simon From Jakobsen Date: Fri, 2 Aug 2024 13:15:03 +0000 Subject: [PATCH] add helloworld-rs --- helloworld-rs/.gitignore | 2 ++ helloworld-rs/Cargo.lock | 7 +++++++ helloworld-rs/Cargo.toml | 6 ++++++ helloworld-rs/README.md | 11 +++++++++++ helloworld-rs/src/main.rs | 3 +++ 5 files changed, 29 insertions(+) create mode 100644 helloworld-rs/.gitignore create mode 100644 helloworld-rs/Cargo.lock create mode 100644 helloworld-rs/Cargo.toml create mode 100644 helloworld-rs/README.md create mode 100644 helloworld-rs/src/main.rs diff --git a/helloworld-rs/.gitignore b/helloworld-rs/.gitignore new file mode 100644 index 0000000..dc0d833 --- /dev/null +++ b/helloworld-rs/.gitignore @@ -0,0 +1,2 @@ +target/ + diff --git a/helloworld-rs/Cargo.lock b/helloworld-rs/Cargo.lock new file mode 100644 index 0000000..a2929fe --- /dev/null +++ b/helloworld-rs/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "helloworld-rs" +version = "0.1.0" diff --git a/helloworld-rs/Cargo.toml b/helloworld-rs/Cargo.toml new file mode 100644 index 0000000..926cbae --- /dev/null +++ b/helloworld-rs/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "helloworld-rs" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/helloworld-rs/README.md b/helloworld-rs/README.md new file mode 100644 index 0000000..ce393ab --- /dev/null +++ b/helloworld-rs/README.md @@ -0,0 +1,11 @@ + +# helloworld-rs + +```sh +cargo run +``` + +```sh +cargo build --release +./target/release/helloworld-rs +``ยด diff --git a/helloworld-rs/src/main.rs b/helloworld-rs/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/helloworld-rs/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}