Rust Tutorial for Beginners - Full Course (With Notes and Project Ideas)

Поділитися
Вставка
  • Опубліковано 9 чер 2024
  • In this video, Harkirat takes you through four hours of learning rust from the basics.
    It covers concepts like memory management, ownership, borrowing, structures, data types, enums, and much more.
    Link to the slides of the video projects.100xdevs.com/tracks/...
    Links:
    Open Source Cohort: harkirat.classx.co.in/
    Twitter: / kirat_tw
    Linkedin: / kirat-li
    Instagram: / kirat_ins
    Discord: / discord
    Telegram: t.me/kirat_internal_group
    Timestamps:-
    00:00 - Intro
    00:00:20 - 1. Preface
    00:03:27 - 2. Syllabus
    00:09:59 - 3. Why rust? Isn't Node.js enough?
    00:23:04 - 4. Initializing rust locally
    00:26:48- 5.Initialising a rust project
    00:30:16 - 6.VSCode setup + Hello world
    00:36:27 - 7.Simple Variables in Rust
    01:03:41 - 8. Conditionals, loops…
    01:13:08 - 9. Functions
    01:14:45 - 10.Memory Management in Rust
    01:28:32 - 11. Jargon #0- Mutability
    01:36:02 - 12.Jargon #1 - Stack vs heap
    02:12:49 - 13. Jargon #2 - Ownership
    02:45:11 - 14. Jargon #3 - Borrowing and references
    03:07:12 - 15. Structs
    03:14:14 - 16. Implementing structs
    03:18:41 - 17. Enums
    03:25:29 - 18. Pattern matching
    03:30:07 - 19. Error handling
    03:47:44 - 20. Option enum
    03:53:57 - 21. Cargo, packages and external deps
    03:59:59 - 22. Project ideas

КОМЕНТАРІ • 260

  • @rahulmora9328
    @rahulmora9328 Місяць тому +21

    Wow! Explained all the fundamentals of Rust very clearly and with good examples. I will definitely recommend this video to any one who would like to learn Rust.
    Eagerly waiting for Part-2!!!

  • @anuragshukla-tn3ux
    @anuragshukla-tn3ux Місяць тому +10

    A slight correction : At 3:01:40 the reason behind compilation is not just that s2 and s3 are not getting used, the reason is the use of s1 ends there itself(after the declaration). That means even if you use s2 in a print statement just after borrowing and before declaring s3 (with mutable or immutable reference), the code will compile because s2 is no longer in use.
    For example :
    let mut s1 = String::from(“Hello”);
    let s2 = &mut s1;
    s2.push_str(“ world”);
    let s3 = &s1;
    println!(“{}”,s3);
    Thanks for this video Kirat

  • @Isagi__000
    @Isagi__000 Місяць тому +4

    Thanks man. You are really helping lot of ppl.

  • @anilpandey3872
    @anilpandey3872 15 днів тому +1

    Eagerly waiting for Part-2!

  • @AliPythonDev
    @AliPythonDev Місяць тому +70

    Finally the wait is over!
    Time to dive into the world of Rust.

    • @mohitcodeswell
      @mohitcodeswell Місяць тому +3

      Yay 🤡

    • @iritesh
      @iritesh Місяць тому +1

      This video is nothing 🫠 better learn it from documentation

    • @AliPythonDev
      @AliPythonDev 28 днів тому

      Hi@@iritesh,
      While documentation is definitely a valuable resource, bootcamps can offer a structured learning path, live coding examples, and a chance to ask questions directly in comment section and in discord. This can be helpful for beginners who might find documentation overwhelming at first. In the end, the best learning method depends on your individual preferences.

  • @AryanSharma-dc4bj
    @AryanSharma-dc4bj Місяць тому +14

    Don't have the time to watch it now , but this guy is doing wonders for the community , we definitely need more creators like him

  • @teja34567
    @teja34567 Місяць тому +4

    Seriously ❤❤❤❤ man you dropped whole video

  • @jmgaming8170
    @jmgaming8170 13 днів тому +4

    types cargo add rand-
    "that sounds very sus"
    3:56:08
    Enjoyed this video. Really helps solidify concepts after reading The Rust Book

  • @mukulsaini7297
    @mukulsaini7297 19 годин тому

    Thank you sir , I'm halfway through the video and understood everything very well. I really needed this because of an auditing contest for a project which uses rust, I'm already a solidity auditor. Thank you very much sir!

  • @SuperHardik12345
    @SuperHardik12345 Місяць тому +11

    Finally someone is here to talk about Rust.

  • @rajneeshmishra6969
    @rajneeshmishra6969 Місяць тому +3

    Loving the explanation at 2:17:59 😂😂😂😂

  • @bhanuprakasht9405
    @bhanuprakasht9405 Місяць тому +3

    Thank you for providing this bootcamp.

  • @aviator1209
    @aviator1209 Місяць тому +3

    We need part 2 as well. Thanks!!

  • @techthief3278
    @techthief3278 Місяць тому

    You're GEM bro! Most awaited one:)

  • @user-vg5tz5lu9e
    @user-vg5tz5lu9e Місяць тому +3

    other creators just talk and give what everyone giving/ teaching, But harkirat gives what makes us out of the traffic and standalone like a pro
    Thanks Harkirat sir
    Please start Web3 cohort asap waiting to learn web3 in detail

  • @ibgaurav7159
    @ibgaurav7159 Місяць тому +4

    Masterpiece really ❤❤❤

    • @PrathiGeethi
      @PrathiGeethi Місяць тому +3

      Really!!! really ???? its just 30 mins since the video released. 🤦

  • @darshakpatel6452
    @darshakpatel6452 Місяць тому +1

    This what i was waiting for.

  • @anurag-sachan
    @anurag-sachan Місяць тому +1

    amazing video brother, explained the concepts really well.
    waiting for part 2.

  • @SUN_SUN2
    @SUN_SUN2 Місяць тому

    Finally rust comes into the picture. Thank you Harkirat Bhaiya

  • @sjxsubham...
    @sjxsubham... Місяць тому +1

    Thank U..!! waiting for this eagerly...😊

  • @shubhamprajapati2476
    @shubhamprajapati2476 29 днів тому

    Thank you kirat for such amazing rust bootcamp

  • @MMchezziscoo
    @MMchezziscoo 12 днів тому +1

    Waiting for next part..thanks a lot

  • @ponyma2052
    @ponyma2052 29 днів тому +2

    Cool!!!! Waiting for part 2

  • @Rohan-vl1ve
    @Rohan-vl1ve Місяць тому +6

    You can see the Hardwork this dude putting , other youtubers and reels banane wale aayenge ezysnippit type ke Rust ki ek line explain karenge views ke liye air cool banenge bass . Jo community me trye work hai vo sirf Harkirat bhaiya hi kar rahe hai filhal baaki sabh bakchod hai .

  • @ShreyashKasar
    @ShreyashKasar Місяць тому +4

    Oh my god. I just literally rambling on UA-cam for Rust and Just Harkirat's Video came :-)))))))))))))))))))))))))))))))))))

  • @kunaldev5274
    @kunaldev5274 Місяць тому

    Great Video.. Explanations are really great

  • @riteshkoushik9963
    @riteshkoushik9963 Місяць тому +1

    God, I have been waiting for this forever! 😭 Let's go!

  • @sachinpangal2194
    @sachinpangal2194 Місяць тому +3

    bro is just man of words 🫡

  • @psapajith2336
    @psapajith2336 29 днів тому +3

    Pls release part 2 man

  • @swarupbanik9537
    @swarupbanik9537 3 дні тому +1

    Killed it at 2:44:13

  • @gowthamsrinivasan9285
    @gowthamsrinivasan9285 Місяць тому +1

    Actually, it's a great video, sir, expecting the next part

  • @harshpatel105
    @harshpatel105 Місяць тому

    awesome video, thanks

  • @debruppaul8239
    @debruppaul8239 27 днів тому

    please!! Rust-2 needed greatly explained

  • @urvish3672
    @urvish3672 19 днів тому +1

    10/10 for story telling

  • @rabeebaqdas4844
    @rabeebaqdas4844 Місяць тому +1

    Harkirat i love your content the way you explain things are incredible, thank you soo much for this video, you did a great job, eagerly waiting for the next part, love from Pakistan❤

  • @user-np8jf7lq8v
    @user-np8jf7lq8v 27 днів тому

    it's really great i am looking forward to next part please make 2nd part and in more depth i like to learn rust from you in more depth thank you for providing this cool content .

  • @varenyamnikam2500
    @varenyamnikam2500 Місяць тому +1

    Please keep posting always educational or noneduational u provide motivation to all students

  • @rithvik_
    @rithvik_ Місяць тому +1

    Expecting a continuation video😊

  • @TechDoctorMalayalam
    @TechDoctorMalayalam Місяць тому +1

    Great tutorials

  • @NimishMadan98
    @NimishMadan98 Місяць тому

    Great video!! waiting for web3 cohort.

  • @amanprakash7415
    @amanprakash7415 29 днів тому +1

    Please part 2, gone through the video after reading documentation and got my concept more firm.

  • @ranitbiswas6278
    @ranitbiswas6278 Місяць тому +1

    1:03:00
    unwrap() function extracts the value from Enums like Result or Option.
    If the variant is Ok (or Some) then there must be some value and we can use the unwrap() to extract the value out of it.
    But if the variant is Err (or None), then the thread would rather panic. So when we're confident that the variant type would be either Ok (in case of Result) or Some (in case of Option), then only we should use unwrap(). Otherwise it's recommended to handle this case either using `match` statement or using
    `if let Some(c) = greeting.chars().nth(1000) {
    println!("{}", c);
    } else {
    println!("index out of bound");
    }`

  • @aayushkr.xlla0135
    @aayushkr.xlla0135 28 днів тому

    great video very informative just finished watching and coding
    Happy coding😇

  • @RohiniSharma-qm3ch
    @RohiniSharma-qm3ch Місяць тому +4

    Hey harkirat ! Just wanted to know when are you launching cohort 3 for web3 and ai ?

  • @travellingdev
    @travellingdev Місяць тому +2

    awesome 👏 👏 👏 👏

  • @mohitthapa573
    @mohitthapa573 Місяць тому +5

    @Harkirat can you make a video on not 0 to 50 lpa but how we can get our first 6 to 10 lpa job through your 100xdev cohort..

  • @roshankamble1239
    @roshankamble1239 Місяць тому +1

    Only halfway through it, the relationship context is hilarious 😂😂

  • @user-ui4ig4sz5f
    @user-ui4ig4sz5f Місяць тому

    Hell yaaa thats what i wanted !!!

  • @085_kirtiraj4
    @085_kirtiraj4 Місяць тому

    LFG!🚀

  • @adityamadhabborah6896
    @adityamadhabborah6896 Місяць тому +1

    Want the part 2 soon!!

  • @abhirajthakur7967
    @abhirajthakur7967 Місяць тому +1

    What did we learn at 2:44:12 was the best part of the video.

  • @velagapudirohiteswar4360
    @velagapudirohiteswar4360 Місяць тому +2

    waiting for part-2!

  • @abhijitrajkumar2406
    @abhijitrajkumar2406 Місяць тому +1

    I love it

  • @fanoygamer6112
    @fanoygamer6112 Місяць тому +1

    Bhaiya love your video please make video on git and github and teach us how things actually work in real world company.

  • @toppojaiwant
    @toppojaiwant 13 днів тому

    One of the images used in this video's thumbnail uses the image/logo of the Rust(Video Game). Just an info for the creator in case of a copyright strike.
    Other than that Amazing content. Keep it GOING!!

  • @neelcontractor5263
    @neelcontractor5263 15 днів тому +1

    Hey harkirat, I tried the other left topics from rust book but they are bit hard to understand .please bring other part of rust video soon. 🙏

  • @akashnikam5643
    @akashnikam5643 28 днів тому +1

    Waiting for the next part

  • @gullyboys1020
    @gullyboys1020 Місяць тому

    3:20 cohort when will it come ,after the web2 cohort2 or anytime before that??? we really want to get in the web3 learning from the right person is the right way but have been waiting now for a long time web2 may end after4-5 months thats a lot of time to wait please clear the date of web3 cohort so we decide whether to buy someone elses course or wait for u provided the launch is soon??

  • @gokul2003g
    @gokul2003g Місяць тому +3

    Try to go through the rust book, it is well writtern and should let you get up and running quickly!

    • @mohd.tabishkhan4868
      @mohd.tabishkhan4868 Місяць тому

      can you drop the name of the book?

    • @gokul2003g
      @gokul2003g Місяць тому

      @@mohd.tabishkhan4868 the rust book just google, it will have 20 chapters
      i can't post the link my comment is getting deleted

  • @srinivassr5067
    @srinivassr5067 Місяць тому +1

    1:08:34 the right syntax is ans.push(char);

  • @fakeuser-ee1fp
    @fakeuser-ee1fp 15 днів тому

    One of the tough and challenging language to learn is considered now in 2024 and onwards
    Good for malware development and many more

  • @sameersayyad6170
    @sameersayyad6170 Місяць тому +14

    Kirat bhaiya literally has that karpathy effect on me, where he drops something educational and i jump straight on to it...

  • @prateekkumar1683
    @prateekkumar1683 Місяць тому +2

    When will be the web3 bootcamp? Will there be no Web Dev cohort 3?

  • @enghimanshu
    @enghimanshu Місяць тому

    Let's go!

  • @nimitharia6695
    @nimitharia6695 Місяць тому

    🔥🔥🔥

  • @jooonmantv
    @jooonmantv 3 дні тому

    you're awesome

  • @Spike_104
    @Spike_104 Місяць тому +2

    when will you release part 2 sir and yeah Rehana se door rehna hai,got it

  • @kishanvats03
    @kishanvats03 Місяць тому

    Wooah🎉❤

  • @h17680
    @h17680 Місяць тому +1

    Do something like this for Golang as well

  • @pallavisingh-ob5mg
    @pallavisingh-ob5mg Місяць тому

    Hi Harkirat,
    I wanted to know if someone work as individual contractor and then start with multiple job part time. This will count in experience when you start applying for normal jobs full time jobs .

  • @premrajpurohit3459
    @premrajpurohit3459 Місяць тому

    Sir it's valid for beginners the person don't have any programming knowledge

    • @whonixgaming
      @whonixgaming Місяць тому +3

      Nope it's not beginner friendly it's for senior devs who already have knowledge about programming languages or have experience working in tech
      If you want to learn rust as your first programming language then it's your choice but if you want to get a job as a rust developer as fresher then it's not for you

    • @sayanmanna2511
      @sayanmanna2511 Місяць тому +2

      Why the heck u want to learn rust then??? Go for js or any other languages like java

    • @kellymcdonald7095
      @kellymcdonald7095 Місяць тому

      chaddi mei moot dega bhai jaake C sikh pehle fir Java ya Javascript. Rust krenge yeh starting mei wahhhh

    • @vira5995
      @vira5995 Місяць тому

      first learn c

  • @dasarimanoj3086
    @dasarimanoj3086 Місяць тому

    Are you going to teach us ETH/EVM compatible blockchain development or Purely Core development on Solana for the upcoming Web 3 cohort?

  • @haardsolanki9398
    @haardsolanki9398 Місяць тому

    This Week will now be completely Utilized!

  • @BytesVsStrings
    @BytesVsStrings Місяць тому +1

    Boss level

  • @jagjeevankashid
    @jagjeevankashid 28 днів тому +3

    Waiting for Part 2 of the Rust

  • @eshansingh5232
    @eshansingh5232 Місяць тому

    1:47 I need that buzz lightyear

  • @DevanshuChicholikar-bj2it
    @DevanshuChicholikar-bj2it Місяць тому +2

    Never thought learning Rust would be this much fun! XD. #rihanarules

  • @Ayushsingh-xc4le
    @Ayushsingh-xc4le Місяць тому

    nice example for ownership xD

  • @adityamishra1185
    @adityamishra1185 Місяць тому +1

    Golang would have been better but thanks for the upcoming rust playlist

  • @003shamshuddin
    @003shamshuddin Місяць тому

    harkirath bhaiya what is your opinion on golang?

  • @darshakpatel6452
    @darshakpatel6452 Місяць тому +2

    What did we learn at the end guys? RIhana is *****!!

  • @sahilwep
    @sahilwep Місяць тому

    Gem content

  • @Pppupu6858
    @Pppupu6858 Місяць тому

    Hiii man can you give a industry lvl data science roadmap/ resources or your course

  • @CuriousMindsKIRTHI
    @CuriousMindsKIRTHI Місяць тому

    Wowowowo

  • @ArnabJhaYT
    @ArnabJhaYT Місяць тому +1

    Part 2 plz

  • @siddharthmanjul4961
    @siddharthmanjul4961 Місяць тому

    Sir when will you launch the web3 cohort?

  • @D_P279
    @D_P279 Місяць тому

    C or zig are tough as rust ..? 0:36 please reply

  • @john-xb6xj
    @john-xb6xj Місяць тому

    Thanks a lot ❤

  • @arijitdn
    @arijitdn Місяць тому

    Which vscode theme does u use?

  • @Devaratha2313
    @Devaratha2313 Місяць тому +1

    Brother. Thanks for the video, wating for web3 cohort? Please give some updates 🔥🚀

  • @gopallohar5534
    @gopallohar5534 12 днів тому +2

    Any plans to continue? Or just upload and forgot

  • @aarthi61lthalla88
    @aarthi61lthalla88 16 днів тому +1

    Plz upload part2

  • @user-vn7pc1fu5m
    @user-vn7pc1fu5m 10 днів тому +1

    need part 2

  • @user-uz8co5td5w
    @user-uz8co5td5w Місяць тому

    please try to upload second video also. i will complete this video for sure

  • @prakharsinha4145
    @prakharsinha4145 Місяць тому

    🚀

  • @SalmanPandey-iz5hv
    @SalmanPandey-iz5hv 24 дні тому

    Please upload part 2

  • @kalkeshwaryamsani9638
    @kalkeshwaryamsani9638 Місяць тому

    Hey hkirat, suggest some good channels and accounts in Twitter or discord channels so that we are up to date in the technology and knowledge.

  • @AhmedAbdurrub
    @AhmedAbdurrub 28 днів тому

    can we know when is the web3 cohert?

  • @milinddethe7836
    @milinddethe7836 Місяць тому

    I would be really great if you can make a video for scripting with python/golang for DevOps and developers

  • @MishalTurkane
    @MishalTurkane Місяць тому +1

    waiting for part 2