What's up guys.
This is Ronnie.
Welcome back to CNN technology.
This is tutorial to our part to this topic would be how we can set up and moment on how to set up blast
environment.
Blake will be going to talk about what are the software required.
What are the ideas we're going to like use and what are what are the different packages or extension
on how you can create your first draft program how to compile all those sort of things that were discussed
in this tutorial.
So first things first.
So download an instant rush.
You have to go to this Web site and you have to follow the steps or if I just click on this thing.
Let me just click so feet.
This is a Web site for loading up to click away here.
Get started.
And for installation you have to just follow the steps.
That's it.
It's very simple.
So for example if you were on Windows then probably you need to just let me just take lessons as a management
tool.
Installation four for Mac and Linux death.
Just this copy paste this thing in the terminal and it will be done.
And for Windows probably you have to click here.
No I think not just to you
other stuff.
Just thinking about the Windows installation
men into
if little like you were running will actually be there just because I am on Mac was just giving me this
recommendation for what I will do I just open this and another thing let me open it up more tech stops
it is actually one of my two more desktop machine.
So what I will do.
Let me just
so here actually this will give you the problem for the XP set up to just download these leaks like
this.
So it will be it will start downloading like this if you see it is downloading over here.
Okay.
So once the download is completely happy just click then it will last for the installation.
So for me it is already done so it will say that it is only the fee based entity to continue
okay.
So next thing is that the installation is does not the next thing if they install it and if completed
how to verify their lighting.
Let me check what is there in our slide actually so installation is done.
So value doesn't validate the installation.
So for that you need to go to actually here and type let's say cargo has to look out with the.
Like what is a package manager package manager for the same thing like bite on people and being followed.
If see if you like cargo.
And after that what is happening is actually in Germany for cargo.
And so it is giving me the version of cargo and it just says it all to as Mr. Parker or asked compilers
for just this thing this give you these things it means your asked is up and running so I just type
this thing in the slide for
cargo
motion or
merchant.
Okay.
Next thing.
Introduction to the last phase or what is right.
Casinos before.
Before that.
Actually
I think we need to do a separate step here
and download and or link
opened the if.
Let me open the V escort first and then it will be easier.
So if you open V.S. code here
see if you open this V escorting.
Okay so you can go here and search for the extension and dairy app to search for thing honesty on a
list.
Okay.
And after that it will click here for me before millions turn for you in your case here.
Just click on the install.
Okay so last are endless fertilized go to the escort extension.
What is that name.
I don't know.
Gay extension marketplace.
Okay.
So the escort extension marketplace
and search for partners to dust out Alice in star style destination.
Okay so these are the steps you have to follow.
For once this is done you are ready to go for your last see how interaction for there are so you can
start working with Rusty Okay.
So let me just do this thing.
So this is done in our case.
So this is done where we just remove this thing and go here and order Lou.
I religious create a file here.
Mm
oh well.
Just thinking what to create fine.
Or did we just delete it from here open folder new folder and give a name and the folder if you'd like
to my document.
So we're just
again it became the thing to do for us to do we'll look at
so tutorial in our case so let's select the folder
so see it is created just tutorials know what I'll do I'll just try to create one file so I'll give
it name as tutorial one dot artist just because this is our first code for that is like just giving
you a tutorial on this.
So for every art is good code it will start with one method called Main function name and after that
if you didn't notice any argument for actually the thing is then it is always for me this German keyboard.
So and then this and print just because we have installed the orderlies it's insensitive giving us the
autocomplete of facility so hello from total technology and all the code will be like terminated with
the semicolon so it's more like feel C++ and just don't worry about all these things I'll teach you
everything to this.
This is when you are.
This is when the method of men every hospital room starts with distinctly internal and if and another
macro for this is how it is.
So now the thing is we need to run this thing.
Okay so first of all we need to set this thing
safe.
Then after that we need to just add one thing if we see this properly installed this rustic sense and
then you will get this icon like or asked R if you feel we're here.
This is okay.
It's
okay.
Something happen here.
Well something happened I'm not sure.
Let me like this thing again.
Okay so now you have to just open the terminal from here.
Just given right click on let me just save this thing first thing.
Let me open the terminal here.
So here.
So now I have to compile this thing so you have to the stapler asked fee and just filing tutorial 1
not.
Is
Sophie it is creating when executable file no help.
It is only and this thing to do.
One see it is printing hello from total technology for this output so this is how you can use rust C
to compile and run or execute your program.
So when you compile it I'll give you one bit of unique features same as it is like if you are familiar
with a lake I think in C++ that a thought she shared while sort of giving the same with PDB and if I
look.
So let me just copy this thing
and
Okay then see
you come.
Using the just three
happening.
If you didn't find Lin and then only output
file.
These are the steps.
Okay.
Make it a bigger
okay.
So this is done.
No negating the how to set of last project using cargo no they don't do that.
Cargo is one of the most important things.
This is not the writer of creating a writer creating the last project dissidents.
44 just going to create one last file.
But for the project initiation or set up this is not the right thing so probably I can create this thing
in a different way.
So what I'll do I'll just delete everything from here
let me deleted everything from here as it is like this.
So nothing is here.
Now I'll set up the thing so
terminal it is open now have to use cargo then cargo and then in it for it is initiating one faith created
binary application package everything.
So this is for getting this is for guitar and other things that we are not going to discuss all these
things.
This is car would be amended the same like Python Pip file or Nolan beam file just since I like this
format.
So then this is the actual file so here our for what I mean through the main door diaries.
Okay.
So now if you want to like the same thing.
And if you want to build this thing.
Okay.
So first thing like me like this thing how to set up for setting up yeah we just use cargo in it.
Okay.
Run run run run program using cargo so next topic is how to run the rest for women's in Kabul.
So now you got your file.
Now I have to go to this directly.
Okay.
So what do you have to go to see FARC.
Okay you went here and here you just gotta go run
so see it is hello world.
And if you come here it will also create one target file and inside that debug and there it will get
you re XY see it's here actually.
Right.
So how to run that for that you have to just go to city
or city target is not coming s.t. to get it.
Let me just take this thing man.
Okay so lighting flares target slash and debug flares and you have to just run this thing last tutorial
lips and this thing arrest
in the court to put it
snot.
I mean I'm not sure there s tutorial SC
do well this is mandatory.
So this is another four.
Let me take the folder structure first.
So this is actually inside the target and debug.
So probably we have to just come out of this.
Uh we're actually inside this last tutorial and inside that there is a target.
Okay.
So what is going to happen.
Mm.
Probably CDE
so no again it is seen as I see
or see flats now in sight.
If I say So what do I do try to
we need to go to the truly
so.
Let me just open this thing from here actually opening terminal so terminal is open so.
So now if we open City debug and then if you were asked
in the scope tutorial theatre spending.
Hello world.
Okay so this is how it is.
So let me just write this thing here.
So for executing or running the program have to just using
Carlo run and you can see what he did over here.
This one we just use this cargo run cargo.
You need the NRC then cargo run we just cleared and it is creating so the file structure and all the
things we will get it from there.
So what I'll do so I'll just take a screenshot of this thing.
The project structure
and probably we can print it here.
Cargo run
okay so what I'll do is just insert this thing.
This is a project structural.
We're asked.
Okay.
Noting how to set up.
Whereas this is done.
How to run using cargo not to build a release.
Last project for production.
Okay food dishes introduction.
This is set up called a project.
This is how to run.
No this is built released starts project for production know how I can look like build your project
for production.
So what it'll do now.
So let me.
We.
So.
Meetings less less
backs and forwards.
I'm not sure I'm a bad idea for things.
So what I'll do.
I will just say this is our directory.
You're actually here in SLC.
So now what I do.
I just gotta go.
Okay.
And you may not run.
So you do not create any executable see it is creating.
So if I open this thing then debug
Feeney's he'll convert identify the keys.
So what happened here when we run this thing it is built and it is executed.
Now what happened.
We just built it.
So it is built but it is not going to print anything.
Okay.
Cause we're not running Sagan you just created no next thing is that we need to create it for only for
our production.
So we need to create something for the release more sensitive cargo bay.
And after that SLAs less release.
So just building release.
So you'll see there is a release folder and you will execute events and other things are placed over
there.
So we need to just again to take another directory structure up our project.
Okay and privilege and write only for build
the big
build for production relief to Kabul v
relief.
Okay.
And let me just put the directory structure as well.
So I'll go do insert
insert from pictures from file and I'll put it here.
Well Lou
Okay so this is the directory structure.
Well so this is a complete end to end tutorial how for like installation environment set up how to set
up your visual studio idea for elastic sense and then how you can create or value.
Sorry how can value to do an installation.
How to check that asked to where they're headed off to for working by compiling one source code and
after that set up your cargo project how to set up the project with actual team that is in it which
is like you can create any file using bastard.
Sorry da da victims and it is going to work but this is not the actual project so all of you are familiar
with late flask or Django or no just project or Java projects public there are some dependency files
some other stuff some similar configuration if everything so if you're following the structure let me
just open this thing again.
So see there are multiple things that they are like.
This is the structure here will get get ignore you'll get get this do you do you do your mill file other
stuff so this is very important when you are going to deploy your like project end up like Devil's pipeline
so for that you need to follow the structure.
Okay so nothing else.
So let me just go back to the slide so next thing we did.
How to run 30 set up and then after that how to run cargo program.
How do we run it US program using cargo and what are the structure.
And then we've seen how to build and how to build for relief not by running late only it'll be not going
to provide or produce any output and after that how to build the same thing for production so there
will be one additional synergy folder so that other different things you can use with cargo and I.
So probably our initial steps are completed now in the first part we have done with the introduction
on why you should loan you'd off at that different ethnic sub Rastan system programming and White asked
if different from the other program and in this to really have seen how to set up your ass program cost
for setting up the cost for writing your code you need to understand in environment how to compile had
to debug sorry I haven't talked about debug but if you like if we do something wrong definitely will
come inside the terminal for that you need to understand the compiler and other steps so have I have
seen you guys the different like methods of creating your like grasp program you can create using directly
thought out a fixed incident General that you can compile it from La Cienega and if you want to create
full fledged project that also possible using cargo we need and you can build or run or create or execute
it vary depending on your requirements.
So that's pretty much for this tutorial and it is completed but before ending this tutorial I highly
recommend you guys please try to set up your own environments from the next to drill whenever anybody
start writing code and after the tutorial in entry ways can just follow along the codes or the slides
or PPD or the call ahead of it I'm going to produce you can directly it if I don't and it will be easier.
So you don't have to wait.
Okay so that's all guys that's all for today hope to see in the next video to indicate goodbye and before
like ending this topic guys please subscribe to electronically the like button if you really like this
tutorial if you want us to produce more to do it like this you have to command or you have to provide
some citizen feedback complain if you have any if you have any other links that isn't for any other
tutorial on that topic please feel free to reach me out I'll try to incorporate and those are watching
our course from the Udemy special thanks to all of you guys and because of you and because all of you
this is possible to create this content so I need your support in future as well.
So that's all guys.
That's all for today hope to see in the next video Delinda care goodbye and have a nice day.