_Shanu_
@asun_nets
Followers
231
Following
714
Media
139
Statuses
573
IITIAN CSE || NVIDIA || SYSTEMS || Daily dose of Rust programming here
Oblivion
Joined April 2023
I'm quoting this post to see if it becomes the most viewed post for my account.. if not then this girl is not beautiful....
0
0
2
Day - 2 (9/n) Youβve just successfully set up a project, learned the purpose of Cargo, written your fn main() entry point, and used the println! macro to make your program speak. #CodingLife #RustBeginner
0
1
1
Day - 2 (8/n) A macro is like a function on steroids. In the case of println!, it handles string formatting and ensures safe interaction with the console. Don't forget the semicolon ; at the end. it tells Rust that the line is a complete instruction (a statement). Step
1
1
3
Day - 2 (7/10) Time to make some noise! Inside main, you'll see our first action: println!("Hello, world!"); This is how you print output to the console. The ! is crucial. it signifies that this is a macro, not a regular function. It's an important distinction! π£
1
1
1
Day - 2 (6/n) Every standalone Rust program starts execution inside a special function: fn main() { } The fn keyword means "function," and main is the name. Everything between the curly braces {...} is the code your program will run first. It's the grand entrance! πͺ
1
1
1
Day - 2 (5/n) Now, dive into src/main.rs. This is the beating heart of your program. The .rs extension tells you it's a Rust source code file. Cargo knew you needed an entry point, and it set up a basic structure for you: the main function!
1
1
1
Day - 2 (4/n) Inside your new directory, you'll see two key things: 1) A src folder, and 2) a Cargo.toml file. The .toml file is Cargo's configuration. itβs where you list project details and all your external "crates" (Rust's term for libraries/packages). π
1
1
1
Day -2 (3/n) Let's make a project using cargo. Open your terminal and run this command cargo new hello_rust This command creates a new directory named hello_rust with all the required files. It automatically sets up a clean, conventional project structure for you. β¨
1
1
1
Day -2 (2/n) Let's learn what is cargo? It's like a butler that manages every single aspect of your rust project from organisation to dependencies. #Cargo #RustBasics
1
1
1
Day 2 (1/n) Hello Rusty people ! This is day-2 for the rust daily posts and today let's print out the first program in Rust. Our journey begins with the most essential tool in the Rust ecosystem: Cargo. Think of it as your package manager of rust. The package manager in
1
1
4
#MondayMotivation Well start your day with something that excites you the most For me it's Rust programming language and systems programming For u it can be an exercise and healthy life. Just do it guys .. life is long and everyday is another chance to rectify mistakes.
0
1
3
Guys retweet like and cmnts ... And engage with this post
Did you know the Rust programming language's mascot is a cute little crab named Ferris? π¦ Ferris is often depicted with a graduation cap, symbolizing the language's "safe" memory management! #RustLang #FerrisTheCrab
#programmingtricks
0
0
1
Did you know the Rust programming language's mascot is a cute little crab named Ferris? π¦ Ferris is often depicted with a graduation cap, symbolizing the language's "safe" memory management! #RustLang #FerrisTheCrab
#programmingtricks
0
1
2
Guys let's say hi in the comments and we will follow each other. Target is to at least get 50+ followers from this post. It's genuine. Let's follow each other. Let's connect.
0
0
2
Reached π₯π₯π₯Ί
0
1
1