Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 400 Bytes

File metadata and controls

20 lines (15 loc) · 400 Bytes

rust-learning

Learning Rust 101

How to run or compile a program

# Traverse into the directory
cd <add_directory_name>

# Compile the program using the following command
rustc main.rs

# Run the program using the following command
./main

learnings

  1. The ! calls a rust macro - not a function
  2. In order to compile the programme - rustc main.rs
  3. To run the programme - ./main