Przeglądaj źródła

Cargo project, README & gitignore

Emilio González Montaña 4 lat temu
commit
34a51319f9
4 zmienionych plików z 30 dodań i 0 usunięć
  1. 3 0
      .gitignore
  2. 9 0
      Cargo.toml
  3. 8 0
      README.md
  4. 10 0
      src/main.rs

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+/.idea
+/target
+/Cargo.lock

+ 9 - 0
Cargo.toml

@@ -0,0 +1,9 @@
+[package]
+name = "comments"
+version = "0.1.0"
+authors = ["Emilio González Montaña <emilio@ociotec.com>"]
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]

+ 8 - 0
README.md

@@ -0,0 +1,8 @@
+# 03 - Comments
+
+## Build & run
+
+```
+cargo run
+```
+

+ 10 - 0
src/main.rs

@@ -0,0 +1,10 @@
+fn main() {
+    // This is a single line comment.
+    
+    /* This
+     * is
+     * a
+     * multiline
+     * comment */
+    println!("Hello, world!");
+}