From 7bfbe2acd41c94bd627a0145e5c7ecc074f752af Mon Sep 17 00:00:00 2001 From: acevest Date: Mon, 23 Nov 2020 23:47:41 +0800 Subject: [PATCH] hello_cargo --- learn/rust/hello_cargo/Cargo.lock | 5 +++++ learn/rust/hello_cargo/Cargo.toml | 9 +++++++++ learn/rust/hello_cargo/src/main.rs | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 learn/rust/hello_cargo/Cargo.lock create mode 100644 learn/rust/hello_cargo/Cargo.toml create mode 100644 learn/rust/hello_cargo/src/main.rs diff --git a/learn/rust/hello_cargo/Cargo.lock b/learn/rust/hello_cargo/Cargo.lock new file mode 100644 index 0000000..008df2f --- /dev/null +++ b/learn/rust/hello_cargo/Cargo.lock @@ -0,0 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "hello_cargo" +version = "0.1.0" diff --git a/learn/rust/hello_cargo/Cargo.toml b/learn/rust/hello_cargo/Cargo.toml new file mode 100644 index 0000000..7b07fa0 --- /dev/null +++ b/learn/rust/hello_cargo/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "hello_cargo" +version = "0.1.0" +authors = ["acevest "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/learn/rust/hello_cargo/src/main.rs b/learn/rust/hello_cargo/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/learn/rust/hello_cargo/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} -- 2.44.0