How to get started with Rust quick. Install Rustc for Mac and Linux.
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
-
Create Project
mkdir $project_name
-
Finding Project
cd $project_name
-
Writing and Running:
- Create file name: main.rs
fn main() {
println!("hello!");
}
-
Save file
-
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