]> Zhao Yanbai Git Server - acecode.git/commitdiff
hello_cargo
authoracevest <zhaoyanbai@126.com>
Mon, 23 Nov 2020 15:47:41 +0000 (23:47 +0800)
committeracevest <zhaoyanbai@126.com>
Mon, 23 Nov 2020 15:47:41 +0000 (23:47 +0800)
learn/rust/hello_cargo/Cargo.lock [new file with mode: 0644]
learn/rust/hello_cargo/Cargo.toml [new file with mode: 0644]
learn/rust/hello_cargo/src/main.rs [new file with mode: 0644]

diff --git a/learn/rust/hello_cargo/Cargo.lock b/learn/rust/hello_cargo/Cargo.lock
new file mode 100644 (file)
index 0000000..008df2f
--- /dev/null
@@ -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 (file)
index 0000000..7b07fa0
--- /dev/null
@@ -0,0 +1,9 @@
+[package]
+name = "hello_cargo"
+version = "0.1.0"
+authors = ["acevest <zhaoyanbai@126.com>"]
+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 (file)
index 0000000..e7a11a9
--- /dev/null
@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}