https://github.com/0necontroller/ways-of-rustaceans
Learn Rust from a complete begginers perspective. Curated for any aspiring Rustacean.
https://github.com/0necontroller/ways-of-rustaceans
learning-by-doing rust rust-lang
Last synced: 10 months ago
JSON representation
Learn Rust from a complete begginers perspective. Curated for any aspiring Rustacean.
- Host: GitHub
- URL: https://github.com/0necontroller/ways-of-rustaceans
- Owner: 0necontroller
- Created: 2023-02-05T21:47:25.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-30T20:17:38.000Z (over 2 years ago)
- Last Synced: 2025-08-19T14:05:31.160Z (10 months ago)
- Topics: learning-by-doing, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 6.36 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Book
The Rust lang book in code. All curated from the [Let's Get Rusty channel]('https://www.youtube.com/watch?v=OX9HJsJUDxA&list=PLai5B987bZ9CoVR-QEIN9foz4QCJ0H2Y8&index=1)
## **1. Hello Universe**
[Here](1_hello_universe/) we write our first Welcome me universe code.\
=> [main.rs](1_hello_universe/main.rs)
```rs
fn main() {
println!("Welcome me Universe!!!")
}
```
### **Cargo**
In rust we have cargo an equal of npm in the Rust Universe.\
**Cargo.lock** being an equivalent of **package.lock.json**\
**Cargo.toml** being an equivalent of **package.json**
To init a **new cargo project** you need to install Rust and Cargo then run this code in your terminal of choice.\
``cargo new ``\
To compile this Cargo project we would use, while in the directory of your project.\
``cargo build`` Will build out your project.
``cargo run`` Will build and run the project in one step.\
``cargo check`` Will check your file for errors without producing an executable.
## **2. Guessing game in Rust**
In this we made a guessing game in about 40 lines of Rust.