lyq.me@qq.com 8 months ago
commit
7102d998c5
5 changed files with 24 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 5 0
      .vscode/settings.json
  3. 7 0
      hello_world/Cargo.lock
  4. 8 0
      hello_world/Cargo.toml
  5. 3 0
      hello_world/src/main.rs

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+target/

+ 5 - 0
.vscode/settings.json

@@ -0,0 +1,5 @@
+{
+    "rust-analyzer.linkedProjects": [
+        "./hello_world/Cargo.toml"
+    ]
+}

+ 7 - 0
hello_world/Cargo.lock

@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "hello-world"
+version = "1.1.0"

+ 8 - 0
hello_world/Cargo.toml

@@ -0,0 +1,8 @@
+[package]
+name = "hello-world"
+version = "1.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]

+ 3 - 0
hello_world/src/main.rs

@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}