Browse Source

Add basic main, update gitignore & READM

Emilio González Montaña 4 years ago
parent
commit
243c174571
3 changed files with 17 additions and 14 deletions
  1. 2 13
      .gitignore
  2. 12 1
      README.md
  3. 3 0
      main.rs

+ 2 - 13
.gitignore

@@ -1,13 +1,2 @@
-# ---> Rust
-# Compiled files
-*.o
-*.so
-*.rlib
-*.dll
-
-# Executables
-*.exe
-
-# Generated by Cargo
-/target/
-
+/.idea/
+/main

+ 12 - 1
README.md

@@ -1,2 +1,13 @@
-# 01-hello-world
+# 01 - Hello world
 
+## Build
+
+```
+rustc main.rs
+```
+
+## Run
+
+```
+./main
+```

+ 3 - 0
main.rs

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