0% found this document useful (0 votes)
88 views

01 - Introduction To Rust

Uploaded by

kerelos.mekhael
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

01 - Introduction To Rust

Uploaded by

kerelos.mekhael
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

Introduction to Rust

Basics with Moatasem Elsayed


Content
1- Documentation
2- Introduction
3-Getting Started
4- Hello world
5- Cargo
6- LAB
7-Loop
8-Match
Rust
Documentation
https://doc.rust-lang.org/book/ch00-00-introduction.html
Rust
Introduction
Rust History

Rust was released in 2010 as an open-source systems-level language designed


by Mozilla engineer Graydon Hoare. Initially a side project, Hoare motivation was
to develop a new language as the antidote to the memory management and
allocation problems of C and C++.
What kind of coding language is Rust?

Ruby
Don't focus on
syntax now just pay
attention to goal

Interface
Don't focus on
syntax now just pay
attention to goal
Don't focus on
syntax now just pay
attention to goal
Getting Started
Install
check
update
vscode
Hello world
println!
Cargo
Cargo tool
Cargo.toml
commands
Processing a
Guess
use std::io;
Storing Values with Variables
Receiving User Input
Handling Potential Failure with Result
Printing Values with println! Placeholders
Generating a Secret Number
Comparing
Allowing
Multiple
Guesses with
Looping
Match
match
Variables and
Mutability
Variables and
Mutability
const
const
Shadowing
Shadowing
str
i32
Data Types
Tasks
Tasks
1- read documentation
2- see these videos on Youtube
3- write application with rust to
open vlc
4- write application to create server

You might also like