Тёмный

Rust Tutorial #2 - Using Rust Tools (cargo, rustfmt) 

Tech With Tim
Подписаться 1,5 млн
Просмотров 144 тыс.
50% 1

Welcome to video two in this Rust Programming series! In this video I am going to be showing you some Rust Command Line tools, specifically cargo and also rustfmt. Cargo is actually the recommended tool for building, running, and creating our rust projects. Both of these tools are very helpful, especially as your projects get larger. I hope that you enjoy and learn something new!
💻 ProgrammingExpert is the best platform to learn how to code and become a software engineer as fast as possible! Check it out here: programmingexpert.io/tim and use code "tim" for a discount!
📚 Playlist: • Rust Programming Tutorial
⭐️ Timestamps ⭐️
00:00 | Introduction
01:14 | ProgrammingExpert.io
01:38 | cargo CLI Tool
07:01 | rustfmt CLI Tool
08:14 | main.rs
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
👕 Merchandise: teespring.com/stores/tech-wit...
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
🎬 My RU-vid Gear: www.techwithtim.net/gear/
💵 One-Time Donations: www.paypal.com/donate?hosted_...
💰 Patreon: / techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
-Tech With Tim
-Rust
-Rust Programming Language
-Rust Not The Game
-Learn Rust Programming
-Rust Tools
⭐️ Hashtags ⭐️
#TechWithTim #RustProgramming

Опубликовано:

 

1 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 93   
@xrafter
@xrafter 2 года назад
You could do "cargo fmt" to let cargo invoke rustfmt by itself and without needing to go to src dir.
@PranshuTheGamer
@PranshuTheGamer Год назад
i also use arch btw
@gustavojoaquin_arch
@gustavojoaquin_arch Год назад
I use arch btw
@pepejw
@pepejw Год назад
I see a few people who use arch BTW (I use arch btw )
@aflous
@aflous 5 месяцев назад
I can flex and arch as well BTW
@gargoylezavos5668
@gargoylezavos5668 4 месяца назад
same man. I use arch
@rubencid2575
@rubencid2575 2 года назад
cargo b == cargo build cargo t == cargo test cargo r == cargo run (build and execute)
@wobsoriano
@wobsoriano 2 года назад
cardi b
@808MELOW
@808MELOW 2 месяца назад
​@@wobsorianoP Diddy
@EagleGamerz
@EagleGamerz 6 дней назад
​@@808MELOW none of the letters in your comment are present in the first comment
@AssemblyWizard
@AssemblyWizard 2 года назад
There's no `ls` command in Windows (cmd), you have it probably because when you installed Git you checked the box that adds linux utilities to PATH. Windows people following this might be confused, the command is `dir`
@ssophia
@ssophia 2 года назад
Some Unix commands work on powershell tho. You can use Windows Terminal, it defaults to powershell and has a nicer look than cmd.
@cheesesoldier1077
@cheesesoldier1077 2 года назад
thank you so much
@brendon205
@brendon205 2 года назад
tbh wsl with ubuntu would be the best option if you have enough ram
@ssophia
@ssophia 2 года назад
Nah, real linux >>
@brendon205
@brendon205 2 года назад
@@ssophia yes of course, but If you had to choose between windows and wsl, wsl is better
@PoojaDutt
@PoojaDutt 2 года назад
The quality of your videos is always mind blowing! So easy to follow - excited to see more.
@joshbishop
@joshbishop 2 года назад
Dang...this series started at just the right time for me! I was just wondering about learning Rust, particularly in sublime. Thanks man!
@FabioMontefuscolo
@FabioMontefuscolo 9 месяцев назад
I love how it goes from tutorial2 to tutorial1. I have the exact same problem!!! :D
@anthonyacosta9655
@anthonyacosta9655 Год назад
Thank u for these free tutorials, really appreciate it
@ikec-pw5sb
@ikec-pw5sb 2 года назад
Wait- You're making a Rust tutorial series? That's cool!
@techbhanucomputer4389
@techbhanucomputer4389 2 года назад
tq tim! was waiting for this!
@ssophia
@ssophia 2 года назад
Thank you for these Rust videos!
@Savory_Bear
@Savory_Bear Год назад
Thank you for making the tutorial ❤
@jankapko9338
@jankapko9338 2 года назад
You do need to put semicolons at the end of expressions, however, if the expression is the last expression in a function, you don't have to put a semicolon there, because it indicates that the value returned by that expression should also be returned by the function. So, for example, the println! macro does not return anything and the main function also does not return anything, therefore there does not have to be a semicolon after the println!. Other than that, great video :))
@syntheticperson
@syntheticperson Год назад
Very helpful. Thanks
@sr567
@sr567 Год назад
The best part of this video is Sophie ☺️
@k.r.jester5406
@k.r.jester5406 2 года назад
I like the idea of a tutorial that teaches the things you need to know about rust as we encounter it, but I think it might be more useful to get to the meat of the matter, like the philosophy of rust, sooner
@hamyncheese
@hamyncheese 2 года назад
no kidding! This kind of nonsense is endemic on YT. Next time I hear someone say "go ahead and just type..." ....they are getting kicked in the teeth
@yefrezertezera5957
@yefrezertezera5957 2 года назад
Man u're just the Best.
@hachikoi-san3901
@hachikoi-san3901 Год назад
about rustfmt, there's an extencion in VSCode rust-analizer, does the trick whit the default format, I have format on save and does it once I have the extension installed
@emexJT
@emexJT 2 года назад
Hey tim, what do you recommend as a secondary language with Rust?
@user-iw7il6zq6j
@user-iw7il6zq6j 9 месяцев назад
Thanks man!
@ananthramvijayaraj4554
@ananthramvijayaraj4554 2 года назад
thanks!
@fireplank7520
@fireplank7520 2 года назад
Hi! I used some hacking to get access to this video haha! Thanks for the great series!
@nabilelouaamari4400
@nabilelouaamari4400 2 года назад
😅
@esimitley4729
@esimitley4729 Год назад
thanx. more Rust and Elixir , please
@user-tv1nd5vz3e
@user-tv1nd5vz3e Год назад
So cool so nice
@inderjotsingh5868
@inderjotsingh5868 Год назад
in vs code the code automaticallly formats itself upon saving if you have Rust_analyser extension installed
@shad-intech
@shad-intech 2 года назад
Hope you will do a Haskell series
@yefrezertezera5957
@yefrezertezera5957 2 года назад
How can I find the theme ur using...its awesome theme
@BrandonFalkTheActor
@BrandonFalkTheActor 2 месяца назад
rust fmt is pretty flipping cool.
@subee128
@subee128 Год назад
Thanks
@pravachanpatra4012
@pravachanpatra4012 2 года назад
Tim is it possible to collaborate with Tiff in Tech?
@Absolotle
@Absolotle 2 года назад
What is the purpose of .\ ? Can you eventually run it like any normal program, by writing just the .exe file or double clicking the exe file?
@GisleVanem00
@GisleVanem00 Год назад
bad habit from Unix?
@megumin4625
@megumin4625 Год назад
On cmd it isn't required. But if using PowerShell you do have to do that
@jamesjoyce5962
@jamesjoyce5962 9 месяцев назад
It is not on PATH by default so he is explicit with the location of the executable
@jagadeesh4831
@jagadeesh4831 Год назад
Bro which idle are u using
@patrickhollywood93
@patrickhollywood93 Год назад
thx
@peterhuyghe1006
@peterhuyghe1006 Год назад
@tim Why are you telling people to use ls command on windows ?
@abubakaramjad3343
@abubakaramjad3343 Год назад
If someone is Using Vs And cant Use the (Cargo Build) Command, Then you have to install Desktop development with C++ (Same for Visual Studio Code).👍👍
@manifestasisanubari
@manifestasisanubari 4 месяца назад
I'm a noobie here. Can cargofmt be trusted entirely to not mess up with your code? How would it deal with comments?
@kebman
@kebman Год назад
"So I start tutorial two, I believe I spelled that correctly." xD
@davidardo4466
@davidardo4466 2 года назад
Hello teacher, is math necessary for software enigneer, to work in a company like Google?
@CheckmateStallioN
@CheckmateStallioN 2 года назад
If you know linear algebra, and calculus at least at a basic level you should be good to go. Also must be very comfortable with Big O (algorithm efficiency) and determining your program's time complexity, which uses math so you gotta be comfortable understanding logarithms. More advanced math of course is useful if you want to build game engines. I would focus more on DSA (data structures & algorithms) since this is the heart of programming and this is what separates a great programmer from a so-so programmer. Beware of this myth going around that "you don't need to be good in math". This myth circulated from web "programmers" which are not true programmers, they are script kiddies. This is completely false and you will struggle as a programmer if you are not versed in at least basic linear algebra and calculus
@johnbennett1465
@johnbennett1465 2 года назад
@@CheckmateStallioN all programmers should know Big O. As for the rest, it depends a LOT on what type of programming you are going to do. In my case I used probability all the time. On the other hand I used calculus only once in 30 years. If you don't know what you're going to do (most people), get a broad coverage. If you know what type of programming you are aiming for, find out what it needs and go deep on those areas.
@ByronWatts
@ByronWatts Год назад
Windows is a lot gentler with it's path and file requirements to run an exe...by default, the current directory is in the path and 'exe' is one of the executable types recognized without being explicitly included....thereby, .\tutorial1.exe could more easily be: tutorial1
@mattiatragna8839
@mattiatragna8839 Год назад
GOOD LUCK
@junaidmalik7007
@junaidmalik7007 Год назад
How do I get folders sidebar?
@samuelhulme8347
@samuelhulme8347 Год назад
Open the folder as a project in sublime text.
@demisx
@demisx Год назад
So, cargo is basically what npm is for node?
@samuelhulme8347
@samuelhulme8347 Год назад
Basically correct, from what I’ve seen it do.
@davidardo4466
@davidardo4466 2 года назад
Hello teacher, is math necessary for software enigneer, to work in a company like Google? Please answer me
@wolfslicer7908
@wolfslicer7908 2 года назад
Yes, it's really necessary to have a good understanding of maths to become a software engineer It is eventually all about logic, problem solving and numbers
@davidardo4466
@davidardo4466 2 года назад
@@wolfslicer7908 can i do better math in software engineer?
@Supergecko8
@Supergecko8 2 года назад
@@davidardo4466 better math?
@davidardo4466
@davidardo4466 2 года назад
@@Supergecko8 yeah im very bad math can i do better math
@miguelguthridge
@miguelguthridge 2 года назад
You don't need to be a massive expert on the most complex parts (I've never had to do integration by parts when programming, for example) but a solid understanding of basic and intermediate things is a good idea.
@codeandtalk6
@codeandtalk6 2 года назад
Wow within a day...
@davidelizalde3844
@davidelizalde3844 8 месяцев назад
Thumbs up for sophie.
@pepooo423
@pepooo423 Год назад
mobile or desktop
@LoereDami
@LoereDami 2 месяца назад
8:58 🐈
@danielkrajnik3817
@danielkrajnik3817 Год назад
Cargo space 🌕
@grzegorzryznar5101
@grzegorzryznar5101 8 месяцев назад
Sophie
@Magnus-kd7wd
@Magnus-kd7wd Месяц назад
"tutorial2, I think I spelled that correctly." (Obviously says "tutorial1") Lol
@maxwll_e
@maxwll_e 15 дней назад
whos tom?
@maker._
@maker._ 11 дней назад
I hope it's Tom from Myspace lol
@amazeangelogames3165
@amazeangelogames3165 2 года назад
Do roblox studio pls
@realaxer2911
@realaxer2911 10 месяцев назад
Dạy chả ra gì
@elodiahax1764
@elodiahax1764 2 года назад
go go rust crypto wallet :)
@hamyncheese
@hamyncheese 2 года назад
just what YT needs, more genericlly bad programming tutorials
Далее
Rust Tutorial #3 - Variables, Constants and Shadowing
15:10
ГЕНИИ МАРКЕТИНГА 😂
00:35
Просмотров 1,8 млн
НЕБЛАГОДАРНЫЙ ВНУК #shorts
00:22
Просмотров 499 тыс.
БАТЯ И СОСЕД😂#shorts
01:00
Просмотров 1 млн
I spent six months rewriting everything in Rust
15:11
Просмотров 395 тыс.
Rust Tutorial #1 - Introduction To Rust Programming
15:09
All Rust features explained
21:30
Просмотров 279 тыс.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Просмотров 1,5 млн
PLEASE Use These 5 Python Decorators
20:12
Просмотров 90 тыс.
why rust libraries may never exist.
7:26
Просмотров 217 тыс.
Rust's Witchcraft
9:18
Просмотров 170 тыс.
Val - The Rust Killer | Prime Reacts
16:54
Просмотров 91 тыс.
Go vs Rust vs Bun vs Node | Prime Reacts
18:07
Просмотров 158 тыс.
ГЕНИИ МАРКЕТИНГА 😂
00:35
Просмотров 1,8 млн