Forwarded from AM Kaweesi (AM Kaweesi)
New for Developers 🚀
Developer accounts are now live on AfuChat. Verified dev profiles get trusted status, clearer identity, and access to tools to build and improve the platform.
If you’re building, experimenting, or contributing—this is for you.
DevSDK | Contribute | Dev profile
Developer accounts are now live on AfuChat. Verified dev profiles get trusted status, clearer identity, and access to tools to build and improve the platform.
If you’re building, experimenting, or contributing—this is for you.
DevSDK | Contribute | Dev profile
❤2
Let's learn and be comfortable coding Rust in these 100 days
If you really want to learn Rust with me from the beginning join this channel
We will tackle any problems and be master on it
https://news.1rj.ru/str/days_of_rust
If you really want to learn Rust with me from the beginning join this channel
We will tackle any problems and be master on it
https://news.1rj.ru/str/days_of_rust
Forwarded from 100 days of code - Rust
Day 1 of Learning Rust
Hey friends! Welcome to my series on learning Rust in 100 days. Over the next 100 days, I'll share what I've learned each day, explain key concepts so you can follow along, provide helpful resources, and even create a GitHub repo where we can collaborate. Feel free to create issues there to request more resources, share your progress, or ask questions.
Today, we'll start with the basics: installing Rust on your system (it works on macOS, Linux, or Windows). We'll also cover a quick introduction to Rust, set up a simple project, and run your first "Hello, World!" program. By the end, you'll officially be a Rustacean (that's what Rust enthusiasts call themselves)!
What is Rust?
Before we dive in, let's add some context. Rust is a modern systems programming language designed for performance, reliability, and safety. It prevents common bugs like null pointer dereferences, data races, and buffer overflows through its ownership system, borrow checker, and strong type system—all at compile time, without sacrificing speed. It's great for web assembly, embedded systems, CLI tools, and even replacing C/C++ in performance-critical apps. Companies like Mozilla, AWS, and Microsoft use it extensively. If you're coming from languages like C++, Python, or JavaScript, Rust might feel strict at first, but it teaches you to write safer code.
For more depth, check out the official Rust book: The Rust Programming Language
—it's free and beginner-friendly.
Installing Rust
Rust uses a tool called
On macOS or Linux:
Open your terminal and run:
Follow the prompts. It will download and install Rust, and automatically configure your environment variables (like adding Cargo to your PATH). Restart your terminal after installation.
On Windows:
1. Go to the official site:
https://www.rust-lang.org/tools/install
if you did not find the installer use this link too -> https://forge.rust-lang.org/infra/other-installation-methods.html
2. Download and run the
3. Follow the instructions—it will set up Rust and add it to your PATH automatically.
4. Use PowerShell or Command Prompt for the rest of this guide.
After installation, verify it worked by running:
You should see something like
If you run into issues, refer to the official installation guide: https://www.rust-lang.org/learn/get-started
Setting Up Your Development Environment
Choose an IDE or editor you're comfortable with. I recommend Visual Studio Code (VS Code) because it's free, lightweight, and has excellent Rust support:
1. Download VS Code from https://code.visualstudio.com.
2. Install the
Alternatives: IntelliJ IDEA with the Rust plugin, Vim/Neovim with rust.vim, or even just a text editor like Notepad++ if you're starting simple.
Congrats! You're now officially a Rustacean. 🦀
Your First "Hello, World!" Project
Let's create and run a simple program to print "Hello, World!" This introduces Cargo, Rust's build system and package manager.
Hey friends! Welcome to my series on learning Rust in 100 days. Over the next 100 days, I'll share what I've learned each day, explain key concepts so you can follow along, provide helpful resources, and even create a GitHub repo where we can collaborate. Feel free to create issues there to request more resources, share your progress, or ask questions.
Today, we'll start with the basics: installing Rust on your system (it works on macOS, Linux, or Windows). We'll also cover a quick introduction to Rust, set up a simple project, and run your first "Hello, World!" program. By the end, you'll officially be a Rustacean (that's what Rust enthusiasts call themselves)!
What is Rust?
Before we dive in, let's add some context. Rust is a modern systems programming language designed for performance, reliability, and safety. It prevents common bugs like null pointer dereferences, data races, and buffer overflows through its ownership system, borrow checker, and strong type system—all at compile time, without sacrificing speed. It's great for web assembly, embedded systems, CLI tools, and even replacing C/C++ in performance-critical apps. Companies like Mozilla, AWS, and Microsoft use it extensively. If you're coming from languages like C++, Python, or JavaScript, Rust might feel strict at first, but it teaches you to write safer code.
For more depth, check out the official Rust book: The Rust Programming Language
—it's free and beginner-friendly.
Installing Rust
Rust uses a tool called
rustup for installation and management. It handles multiple Rust versions (stable, beta, nightly) and sets up everything you need, including the compiler (rustc), package manager (cargo), and documentation tools.On macOS or Linux:
Open your terminal and run:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Follow the prompts. It will download and install Rust, and automatically configure your environment variables (like adding Cargo to your PATH). Restart your terminal after installation.
On Windows:
1. Go to the official site:
https://www.rust-lang.org/tools/install
if you did not find the installer use this link too -> https://forge.rust-lang.org/infra/other-installation-methods.html
2. Download and run the
rustup-init.exe installer.3. Follow the instructions—it will set up Rust and add it to your PATH automatically.
4. Use PowerShell or Command Prompt for the rest of this guide.
After installation, verify it worked by running:
rustc --version
You should see something like
rustc 1.82.0 (or whatever the latest version is). No need to manually configure environment variables— rustup handles that for you.If you run into issues, refer to the official installation guide: https://www.rust-lang.org/learn/get-started
Setting Up Your Development Environment
Choose an IDE or editor you're comfortable with. I recommend Visual Studio Code (VS Code) because it's free, lightweight, and has excellent Rust support:
1. Download VS Code from https://code.visualstudio.com.
2. Install the
rust-analyzer extension (search for it in the Extensions tab). It provides auto-completion, error checking, and debugging right in the editor.Alternatives: IntelliJ IDEA with the Rust plugin, Vim/Neovim with rust.vim, or even just a text editor like Notepad++ if you're starting simple.
Congrats! You're now officially a Rustacean. 🦀
Your First "Hello, World!" Project
Let's create and run a simple program to print "Hello, World!" This introduces Cargo, Rust's build system and package manager.
rust-lang.org
Install Rust
A language empowering everyone to build reliable and efficient software.
Forwarded from 100 days of code - Rust
What is Cargo?
Cargo is Rust’s official build system and package manager. It handles:
- Creating new projects with a standard structure
- Building your code (uses
- Downloading and managing dependencies (called crates) from https://crates.io
- Running tests, benchmarks, and generating documentation
- Packaging your project for distribution
Project metadata lives in a
Learn more: https://doc.rust-lang.org/cargo
Steps to Create Your First Rust Project
1️⃣ Open a terminal
- PowerShell on Windows
- Terminal on macOS or Linux
2️⃣ Create a directory for our Rust journey
3️⃣ Create a new project using Cargo
Cargo generates this structure:
-
-
-
4️⃣ Open src/main.rs
Cargo pre-fills it with:
Explanation:
-
-
-
- 4 spaces indentation is the convention
5️⃣ Build and run the project
Output:
Build without running:
Optimized release build:
Congrats! You’ve completed your first Rust project.
If you see errors, don’t panic—Rust’s compiler messages are very helpful.
Resources
- 📘 Rust by Example: https://doc.rust-lang.org/rust-by-example
- 💬 Community: r/rust (Reddit), Rust Discord
Summary
- Installed Rust using
- Learned what Cargo is
- Created a Hello World project
- Ran Rust code with
Practice: Change
Cargo is Rust’s official build system and package manager. It handles:
- Creating new projects with a standard structure
- Building your code (uses
rustc under the hood)- Downloading and managing dependencies (called crates) from https://crates.io
- Running tests, benchmarks, and generating documentation
- Packaging your project for distribution
Project metadata lives in a
Cargo.toml file (similar to package.json in Node.js or pom.xml in Maven). Cargo ensures builds are *repeatable*, *reliable*, and easy to share.Learn more: https://doc.rust-lang.org/cargo
Steps to Create Your First Rust Project
1️⃣ Open a terminal
- PowerShell on Windows
- Terminal on macOS or Linux
2️⃣ Create a directory for our Rust journey
mkdir RustJourney
cd RustJourney
3️⃣ Create a new project using Cargo
cargo new hello_world
cd hello_world
Cargo generates this structure:
-
src/main.rs → main source file-
Cargo.toml → project configuration-
.gitignore → Git ignore rules4️⃣ Open src/main.rs
Cargo pre-fills it with:
fn main() {
println!("Hello, world!");
}Explanation:
-
fn main() → entry point of every Rust executable-
println! → a macro (note the !) that prints to the console-
; ends statements (Rust is strict)- 4 spaces indentation is the convention
5️⃣ Build and run the project
cargo run
Output:
Hello, world!
Build without running:
cargo build
Optimized release build:
cargo build --release
Congrats! You’ve completed your first Rust project.
If you see errors, don’t panic—Rust’s compiler messages are very helpful.
Resources
- 📘 Rust by Example: https://doc.rust-lang.org/rust-by-example
- 💬 Community: r/rust (Reddit), Rust Discord
Summary
- Installed Rust using
rustup- Learned what Cargo is
- Created a Hello World project
- Ran Rust code with
cargo runPractice: Change
"Hello, world!" to print your name.crates.io
crates.io: Rust Package Registry
Je genauer die Position bestimmt ist, desto ungenauer ist die Bestimmung des Impulses in diesem Augenblick und umgekehrt.
Heisenberg
Heisenberg
Forwarded from Onyx Design ⚡️
Really impressed by the work @andymarrow put into this project.
The development is clean and intentional, and the problem-solving behind it is clearly thought through. Projects like this don’t come together without a lot of iteration and dedication.
Worth checking out: https://stark-01.vercel.app/
And this is his Telegram channe
check it out: @miheretabtrysstuff
@OnyxDesignx
The development is clean and intentional, and the problem-solving behind it is clearly thought through. Projects like this don’t come together without a lot of iteration and dedication.
Worth checking out: https://stark-01.vercel.app/
And this is his Telegram channe
check it out: @miheretabtrysstuff
@OnyxDesignx
❤1
Forwarded from Eyu's Terminal
Just 9 people and we will hit 600 before / on the new year's
Welp @eyu_terminal
Welp @eyu_terminal
👏2