uh hello guys welcome to this video so
in this video I will show you how to
download and install rust and set up
inside your vs code so this will be a
full setup video how to set up the rust
programming language and I will run a
simple hello world program as well and
run it in this video so first of all you
need to download and install rust so
just type here rust download and the
very first link which comes right here
install rust just go to this website
rust language.
G and this is actually a program which
rust up which is the exe program if you
are on Windows just select your 32bit or
64bit mine is
64-bit so I will simply select this so
it's almost
8.53 megabytes of size exe file so
simply download this after downloading
it simply run this setup file so as soon
as you run the setup file in the command
line You'll see this message the cargo
home directly is located at C users so
just go with the default
location and uh
now enter proceed with the standard
installation so just enter
it so now it is installing the rust
compiler and also the car cargo which is
the package manager for installing third
party rest packages so it will just take
some time for installation so just wait
here and as soon as it finishes it will
give you the notification that the
installation has completed so just wait
here I just want to show you the
complete process so I will not pause the
video so just see the entire process and
follow along with this video so just
wait for the installation to
finish so this is a uh rust up program
which is a simple exe5 file which you
run it after downloading it so it will
automatically install all the packages
of rust
compiler and after that we can run a
simple rust project inside vs
code so in the meantime guys uh for
setup process in vs code you need a one
extension
inside vs code so just go to the
extension stab and you need one
extension for specifically for rust
which is rust analyzer so just search
for this
extension right here just type here R Us
analyzer so as you type this extension
this is provided to you by the official
rust programming language if you see it
is
checkmark so this is the rust analyzer
it's almost used by 4. 4 billion weekly
downloads so now you can see that guys
uh we have installed this extension rust
analyzer and also if I check guys you
will see that our rust compiler and
cargo has been installed so you can
either close this window or you can just
uh so let me just close it installation
is finished so now if after that you can
open a command line and just
type to confirm rust compiler so if you
type basically this command will be
successful so this is actually your rust
compiler and then this is Cargo cargo is
actually the package manager for rust so
you can see rust package manager to
install third party packages so now
inside your terminal we will create a uh
brand new first project so just open a
very
simple let me go to my projects
directory and WR
here let me navigate to rust
project or let me make
this there is a command here which you
can cargo which is new and Then followed
by your project name so we are just
initializing a new new rust project
cargo new and followed by your project
name so if you type this you will see it
is creating an simple
package so now we just need to navigate
into sample
rest and open it inside vs code so if
you open it inside vs code you will see
this package sorry project has been
created and we have the source folder
main. RS file this is the rust
here and we also have the cargo lock
file cargo which is a package manager we
have a simple
git so now what we need to do uh by
default hello world program will be
written right here so if you want to run
this now how we can run this file we can
simply use the cargo command cargo
run so it is compiling your project and
now if you see the hello world statement
has been successfully printed out so in
this way guys you can download install
rust and then run a simple program I
showed you step by step in vs code how
to set up this process very simply you
can make this customization let me
change the message to this one
so you can see
that the program has been compiled and
is running here right here see we have
more commands right here if you
see we can build this
project so if you want to build this
project or publish it we have all these
commands available
so thank you very much guys for watching
this video please hit that like button
subscribe the channel and also check out
my website as well free mediat tools.com
uh which contains thousands of tools
regarding audio video and image and I
will be seeing you in the next video