No video

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

  Рет қаралды 157,954

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 95
@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 2 жыл бұрын
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 8 ай бұрын
I can flex and arch as well BTW
@gargoylezavos5668
@gargoylezavos5668 7 ай бұрын
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 5 ай бұрын
​@@wobsorianoP Diddy
@ssisaias
@ssisaias Ай бұрын
cargo fmt => formats the source code
@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.
@FabioMontefuscolo
@FabioMontefuscolo Жыл бұрын
I love how it goes from tutorial2 to tutorial1. I have the exact same problem!!! :D
@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 :))
@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
@ikec-pw5sb
@ikec-pw5sb 2 жыл бұрын
Wait- You're making a Rust tutorial series? That's cool!
@hachikoi-san3901
@hachikoi-san3901 2 жыл бұрын
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
@sr567
@sr567 Жыл бұрын
The best part of this video is Sophie ☺️
@oitanny1213
@oitanny1213 Ай бұрын
true :3
@fireplank7520
@fireplank7520 2 жыл бұрын
Hi! I used some hacking to get access to this video haha! Thanks for the great series!
@nabilelouaamari4400
@nabilelouaamari4400 2 жыл бұрын
😅
@blacklight9876
@blacklight9876 6 күн бұрын
VS Code shortcut for rustfmt, no setup required - Shift + ALT + F
@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!
@anthonyacosta9655
@anthonyacosta9655 Жыл бұрын
Thank u for these free tutorials, really appreciate it
@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).👍👍
@BrandonFalkTheActor
@BrandonFalkTheActor 5 ай бұрын
rust fmt is pretty flipping cool.
@pravachanpatra4012
@pravachanpatra4012 2 жыл бұрын
Tim is it possible to collaborate with Tiff in Tech?
@yefrezertezera5957
@yefrezertezera5957 2 жыл бұрын
Man u're just the Best.
@ananthramvijayaraj4554
@ananthramvijayaraj4554 2 жыл бұрын
thanks!
@inderjotsingh5868
@inderjotsingh5868 Жыл бұрын
in vs code the code automaticallly formats itself upon saving if you have Rust_analyser extension installed
@manifestasisanubari
@manifestasisanubari 7 ай бұрын
I'm a noobie here. Can cargofmt be trusted entirely to not mess up with your code? How would it deal with comments?
@Savory_Bear
@Savory_Bear Жыл бұрын
Thank you for making the tutorial ❤
@emexJT
@emexJT 2 жыл бұрын
Hey tim, what do you recommend as a secondary language with Rust?
@techbhanucomputer4389
@techbhanucomputer4389 2 жыл бұрын
tq tim! was waiting for this!
@ssophia
@ssophia 2 жыл бұрын
Thank you for these Rust videos!
@esimitley4729
@esimitley4729 Жыл бұрын
thanx. more Rust and Elixir , please
@peterhuyghe1006
@peterhuyghe1006 2 жыл бұрын
@tim Why are you telling people to use ls command on windows ?
@shad-intech
@shad-intech 2 жыл бұрын
Hope you will do a Haskell series
@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
@demisx
@demisx 2 жыл бұрын
So, cargo is basically what npm is for node?
@samuelhulme8347
@samuelhulme8347 Жыл бұрын
Basically correct, from what I’ve seen it do.
@syntheticperson
@syntheticperson Жыл бұрын
Very helpful. Thanks
@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 2 жыл бұрын
bad habit from Unix?
@megumin4625
@megumin4625 Жыл бұрын
On cmd it isn't required. But if using PowerShell you do have to do that
@jamesjoyce5962
@jamesjoyce5962 Жыл бұрын
It is not on PATH by default so he is explicit with the location of the executable
@user-iw7il6zq6j
@user-iw7il6zq6j Жыл бұрын
Thanks man!
@yefrezertezera5957
@yefrezertezera5957 2 жыл бұрын
How can I find the theme ur using...its awesome theme
@snowman1185-v
@snowman1185-v Жыл бұрын
thx
@kebman
@kebman Жыл бұрын
"So I start tutorial two, I believe I spelled that correctly." xD
@user-tv1nd5vz3e
@user-tv1nd5vz3e 2 жыл бұрын
So cool so nice
@jagadeesh4831
@jagadeesh4831 Жыл бұрын
Bro which idle are u using
@subee128
@subee128 2 жыл бұрын
Thanks
@davidelizalde3844
@davidelizalde3844 11 ай бұрын
Thumbs up for sophie.
@LoereDami
@LoereDami 5 ай бұрын
8:58 🐈
@mattiatragna8839
@mattiatragna8839 2 жыл бұрын
GOOD LUCK
@junaidmalik7007
@junaidmalik7007 2 жыл бұрын
How do I get folders sidebar?
@samuelhulme8347
@samuelhulme8347 Жыл бұрын
Open the folder as a project in sublime text.
@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.
@danielkrajnik3817
@danielkrajnik3817 Жыл бұрын
Cargo space 🌕
@grzegorzryznar5101
@grzegorzryznar5101 11 ай бұрын
Sophie
@codeandtalk6
@codeandtalk6 2 жыл бұрын
Wow within a day...
@pepooo423
@pepooo423 2 жыл бұрын
mobile or desktop
@Fredomnom
@Fredomnom Ай бұрын
6:34 then they would be listed there so you know what exactly you are ignoring 💀😭
@Magnus-kd7wd
@Magnus-kd7wd 4 ай бұрын
"tutorial2, I think I spelled that correctly." (Obviously says "tutorial1") Lol
@maxwll_e
@maxwll_e 3 ай бұрын
whos tom?
@maker._
@maker._ 3 ай бұрын
I hope it's Tom from Myspace lol
@amazeangelogames3165
@amazeangelogames3165 2 жыл бұрын
Do roblox studio pls
@realaxer2911
@realaxer2911 Жыл бұрын
Dạy chả ra gì
@hamyncheese
@hamyncheese 2 жыл бұрын
just what YT needs, more genericlly bad programming tutorials
@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.
Rust Tutorial #3 - Variables, Constants and Shadowing
15:10
Tech With Tim
Рет қаралды 121 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 306 М.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 33 МЛН
English or Spanish 🤣
00:16
GL Show
Рет қаралды 15 МЛН
rust runs on EVERYTHING (no operating system, just Rust)
18:10
Low Level Learning
Рет қаралды 355 М.
Overview of Rust Cargo Tool 🦀📦 Rust Tutorial
28:06
Trevor Sullivan
Рет қаралды 5 М.
The Ultimate Tier Programming Tier List | Prime Reacts
26:57
ThePrimeTime
Рет қаралды 405 М.
Rust Tutorial #1 - Introduction To Rust Programming
15:09
Tech With Tim
Рет қаралды 476 М.
The Rust Survival Guide
12:34
Let's Get Rusty
Рет қаралды 144 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,6 МЛН
~/.dotfiles in 100 Seconds
13:54
Fireship
Рет қаралды 417 М.
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 275 М.
I Reviewed 200 Developer Resumes - They Were Shocking...
11:05
Tech With Tim
Рет қаралды 20 М.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 33 МЛН