commit ceffdfb561c126753084581060f06468b354ac3a Author: Simon From Jakobsen Date: Fri Aug 2 13:15:03 2024 +0000 add helloworld-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!"); +}