Dcode – Telegram
Dcode
139 subscribers
93 photos
10 videos
2 files
78 links
I'm Dave , the CLI guy
Download Telegram
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 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 rules



4️⃣ 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 run

Practice: Change "Hello, world!" to print your name.
Je genauer die Position bestimmt ist, desto ungenauer ist die Bestimmung des Impulses in diesem Augenblick und umgekehrt.


Heisenberg
2025 was an amazing year
🔥4👏1
This shit is getting out of hand

First safaricom now tele

መሄጃ የላቸውም ብለው መጫወቻ አረጉን😭
😁1
If I’m not back in five minutes, just wait longer.


Jim Carrey
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
1
Forwarded from Eyu's Terminal
Just 9 people and we will hit 600 before / on the new year's
Welp @eyu_terminal
👏2
#newchallenge

what if i could hit 100 subs before 2026
Finally 100 subs before 2026🔥🔥

Thanks fam
👏12🍾2
Forwarded from Tech World
I wonder if we could hit 500 subscribers before 2026🤔

@tech_world_o1
30 minutes away from 2026
Happy new year fam
3
😂😂

Imagine it logging with pdf
😁2
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
🔥41
To start the cli too u can run

utradl
or
ultradl-pro
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. 😁