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

preview_player
Показать описание
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!

⭐️ Timestamps ⭐️
00:00 | Introduction
01:38 | cargo CLI Tool
07:01 | rustfmt CLI Tool

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
-Tech With Tim
-Rust
-Rust Programming Language
-Rust Not The Game
-Learn Rust Programming
-Rust Tools

⭐️ Hashtags ⭐️
#TechWithTim #RustProgramming
Рекомендации по теме
Комментарии
Автор

You could do "cargo fmt" to let cargo invoke rustfmt by itself and without needing to go to src dir.

xrafter
Автор

cargo b == cargo build
cargo t == cargo test
cargo r == cargo run (build and execute)

rubencid
Автор

The quality of your videos is always mind blowing! So easy to follow - excited to see more.

PoojaDutt
Автор

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`

AssemblyWizard
Автор

I love how it goes from tutorial2 to tutorial1. I have the exact same problem!!! :D

FabioMontefuscolo
Автор

Dang...this series started at just the right time for me! I was just wondering about learning Rust, particularly in sublime. Thanks man!

joshbishop
Автор

Wait- You're making a Rust tutorial series? That's cool!

ikec-pwsb
Автор

Thank u for these free tutorials, really appreciate it

anthonyacosta
Автор

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

k.r.jester
Автор

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 :))

jankapko
Автор

The best part of this video is Sophie ☺️

sr
Автор

Hi! I used some hacking to get access to this video haha! Thanks for the great series!

fireplank
Автор

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

hachikoi-san
Автор

Tim is it possible to collaborate with Tiff in Tech?

pravachanpatra
Автор

VS Code shortcut for rustfmt, no setup required - Shift + ALT + F

blacklight
Автор

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).👍👍

abubakaramjad
Автор

in vs code the code automaticallly formats itself upon saving if you have Rust_analyser extension installed

inderjotsingh
Автор

Hey tim, what do you recommend as a secondary language with Rust?

emexJT
Автор

@tim Why are you telling people to use ls command on windows ?

peterhuyghe
Автор

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?

Absolotle