Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.08 KB

README.md

File metadata and controls

53 lines (30 loc) · 1.08 KB

rust-creating-project

How to get started with Rust quick. Install Rustc for Mac and Linux.

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

Rust

computers and rust

Creating a Project

  1. Create Project

    • mkdir $project_name
  2. Finding Project

    • cd $project_name
  3. Writing and Running:

    • Create file name: main.rs
fn main() { 
   println!("hello!"); 
}
  1. Save file

  2. Go back to terminal window

 rustc main.rs
 ./main
# Hello!
  • Regardless of operating system, the string project name should print to the terminal. If you don’t see this refer to troubleshooting.

  • If it printed you have written the program

Click here to reference Rust Programming Language.

Beginner Markdown Project: If your interested in a simple mark down project and if you would like a recipe on a DIY Face Mask click link for a complete reciepe