Let's learn Rust - How to Install Rust on Ubuntu

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
good day guys and welcome to my first ever video here on my YouTube channel so I'm a software engineer I've been doing software for about 15 years now but I have a background inet and basically I've been doing that for most of my career I've also done a little bit of node and JavaScript however I've never learned rust so what I thought I'd do is I would learn it and then teach it back to you guys so basically my first video is going going to be how to install rust if you're using Linux and auntu so I'm just going to jump straight into it so basically it's pretty straightforward um all you need to do is go to the rust l.org website and they've got a main install link here and then it comes up with basically how to do it with one command which is this Cur command so all I'm going to do is just copy this come over to my terminal and I'm just going to paste it and this is going to run a cur command that will actually install rust so there it goes it's now starting and it's going to ask me whether I want to PRP the installation I'm going to say yes by typing one and pressing return and now it's going through downloading and installing so it should be done in a couple of seconds but if not we'll just skip ahead and we are done so now it's telling me I start May restart the current shell and basically will reload the path variables so it's added a few environmental variables to the path and so what I'm going to do is rather than close this I'm currently in the folder that I created which is my Ross folder I'm just going to open up visual studio code and now I'm going to just trust this and I'm going to up open up the terminal in here in fact I might just put that over to the left like so and I'm going to open up a ter terminal and at the very bottom I'm now going to create a folder so I'm just going to call it hello world I believe like so I'm going to CD into that folder and now I'm going to create a file just called main. RS so rust files use the RS extension and I'm now going to just quickly do that and what that will do now is up here in this hello world folder I just got they got a main. RS file I'm now going to just quickly add a simple hello world script for rust just to test this out so I come down here into the first part of the documentation copy this main function paste that in save and then just to test it I'm just going to quickly close down that side panel come back down to my terminal and I'm going to run the command line for rust to compile which is rust C so rust compiler essentially and then I'm going to type main. RS because that's our main file and what that's going to do is that's now going to compile that rust file and if I look over here in the uh Explorer you'll see there's this main file that's now being created or if you want to see it by the terminal you can just go LS and you'll see this new main application's been created and then just to quickly test it I just have to run it like it's a a normal executable uh normal executable file right so just type main like that and there you go we can see that we've got hello well printed out so that was a very simple video but that is how you can install and quickly test that rust is working on an auntu machine so thank you for watching and I'll see you all next time
Info
Channel: Daryl Duck
Views: 508
Rating: undefined out of 5
Keywords: rust, rust 2024, learn rust, install rust, compile rust, rust programming, rust programming language, how to install rust, install rust ubuntu, how to install rust on ubuntu 22.04 lts, rust on linux, rust tutorial, programming, ubuntu, coding, linux, rust language, rust lang, learning rust, rust language tutorial, rust programming tutorial
Id: ekVPPf5gDGs
Channel Id: undefined
Length: 4min 7sec (247 seconds)
Published: Sat Feb 17 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.