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
Forwarded from Yitu's Pixverse
0ne to go to hit 40 before 2026, let's go comrades 🫡
Yitu's Pixverse
Yitu's Pixverse
Telegram
Yitu's Pixverse
console.log("Hello Universe!")
Documenting the dev journey | A space for programming, particle physics, random thoughts, and building things. ✨
Documenting the dev journey | A space for programming, particle physics, random thoughts, and building things. ✨
❤2
Forwarded from Tech World
Just built a side project
> It is simple cli tool for download manager
> You can download the link from many sites
> I published it into the python library so many user can access it by installing the package
> to install the tool use the instruction provided in the github or pypi
here is the link - https://pypi.org/project/ultradl-pro/
and
https://github.com/Dawaman43/ultradl-pro
it is beta version
i will improve it a lot so test it if you want to download stuffs
> I know i built fastdl first but the cons of fastdl is it only work in linux and firefox
> But ultraldl is cross platform tool so go play with it
> It is simple cli tool for download manager
> You can download the link from many sites
> I published it into the python library so many user can access it by installing the package
> to install the tool use the instruction provided in the github or pypi
here is the link - https://pypi.org/project/ultradl-pro/
and
https://github.com/Dawaman43/ultradl-pro
it is beta version
i will improve it a lot so test it if you want to download stuffs
> I know i built fastdl first but the cons of fastdl is it only work in linux and firefox
> But ultraldl is cross platform tool so go play with it
PyPI
ultradl-pro
UltraDL Pro - cross-platform CLI downloader powered by yt-dlp
🔥4❤1
Dcode
Just built a side project > It is simple cli tool for download manager > You can download the link from many sites > I published it into the python library so many user can access it by installing the package > to install the tool use the instruction provided…
BTW you need python to install the tool
Forwarded from Yared's log
🤞 it will hopefully force sonnet to be chipper though z.ai already have bigger open model called GLM-4.7 with way chipper api price & nice performance am shore knowing anyone can host this smaller model in smaller v-ram and become a compotator is good motivation to keep price low and work on sonnet 5 🙄
They should open code red else they are coping. 😁
They should open code red else they are coping. 😁