title
Rust Tutorial #1 - Introduction To Rust Programming

description
Welcome to a brand new series on my channel! I'm super excited about this series because I am going to be covering the Rust programming language! Rust is a great programming language and I've really been enjoying it over the past few days and I think you will too. Ideally there is going to be 15 to 20 videos in the series and I'm going to cover everything from the complete basics to some more advanced rust concepts and show you some of the power that Rust has. Enjoy this video and the series! 💻 ProgrammingExpert is the best platform to learn how to code and become a software engineer as fast as possible! Check it out here: https://programmingexpert.io/tim and use code "tim" for a discount! 📄 Resources 📄 Rust Book: https://doc.rust-lang.org/book/ Rust Install Docs: https://doc.rust-lang.org/book/ch01-01-installation.html Rust Installer Download Page: https://www.rust-lang.org/tools/install Microsoft C++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/ Sublime Text: https://www.sublimetext.com/ Terminal Commands Video: https://www.youtube.com/watch?v=-6_GJ0yrbrU 📚 Playlist: https://www.youtube.com/playlist?list=PLzMcBGfZo4-nyLTlSRBvo0zjSnCnqjHYQ ⭐️ Timestamps ⭐️ 00:00 | Series Overview 01:57 | Rust Overview 04:38 | Rust - Windows Installation 06:50 | Rust - Mac & Linux Installation 08:27 | Writing Rust Code 11:16 | Compiling and Running Rust Code ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️ 👕 Merchandise: https://teespring.com/stores/tech-with-tim-merch-shop 📸 Instagram: https://www.instagram.com/tech_with_tim 📱 Twitter: https://twitter.com/TechWithTimm ⭐ Discord: https://discord.gg/twt 📝 LinkedIn: https://www.linkedin.com/in/tim-ruscica-82631b179/ 🌎 Website: https://techwithtim.net 📂 GitHub: https://github.com/techwithtim 🔊 Podcast: https://anchor.fm/tech-with-tim 🎬 My YouTube Gear: https://www.techwithtim.net/gear/ 💵 One-Time Donations: https://www.paypal.com/donate?hosted_button_id=CU9FV329ADNT8 💰 Patreon: https://www.patreon.com/techwithtim ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️ ⭐️ Tags ⭐️ -Tech With Tim -Rust -Rust Programming Language -Rust Not The Game -Learn Rust Programming ⭐️ Hashtags ⭐️ #TechWithTim #RustProgramming

detail
{'title': 'Rust Tutorial #1 - Introduction To Rust Programming', 'heatmap': [{'end': 419.368, 'start': 396.888, 'weight': 0.871}, {'end': 513.538, 'start': 498.023, 'weight': 1}], 'summary': 'This rust programming tutorial series includes 15-20 videos, covering installation on mac, linux, and windows, web services, and dev ops tools. it also details the installation process on windows and mac, setting up the code editor, writing the first rust program, and programming fundamentals such as the main function, indentation style, running and compiling code, and creating platform-independent executable files.', 'chapters': [{'end': 267.358, 'segs': [{'end': 103.156, 'src': 'embed', 'start': 46.606, 'weight': 0, 'content': [{'end': 52.412, 'text': "I'm going to cover everything from the complete basics of setting up your environment to some more advanced rust concepts,", 'start': 46.606, 'duration': 5.806}, {'end': 55.456, 'text': 'and show you some of the power of the rust programing language.', 'start': 52.412, 'duration': 3.044}, {'end': 61.04, 'text': 'With that said, I will quickly mention here that this series is not designed for complete beginners.', 'start': 55.976, 'duration': 5.064}, {'end': 64.163, 'text': "I'm assuming you have some familiarity with programing.", 'start': 61.42, 'duration': 2.743}, {'end': 68.246, 'text': "You've touched programing languages before or at least one before.", 'start': 64.403, 'duration': 3.843}, {'end': 71.408, 'text': 'Otherwise, it will be a little hard to follow along here.', 'start': 68.786, 'duration': 2.622}, {'end': 74.311, 'text': "However, if you are a beginner programmer, that's fine.", 'start': 71.789, 'duration': 2.522}, {'end': 76.412, 'text': "I'm just assuming you kind of know what a variable is.", 'start': 74.331, 'duration': 2.081}, {'end': 79.115, 'text': 'You understand what a command prompt in a terminal is.', 'start': 76.733, 'duration': 2.382}, {'end': 84.219, 'text': "I'm not going to explain all of the super basic stuff that I imagine most of you are familiar with.", 'start': 79.395, 'duration': 4.824}, {'end': 90.865, 'text': "And with that said, if you are a complete beginner programmer or you're kind of in the beginner stages and you're looking to get better at programing,", 'start': 84.699, 'duration': 6.166}, {'end': 93.507, 'text': 'you can check out my course ProgrammingExpert.io.', 'start': 90.865, 'duration': 2.642}, {'end': 95.008, 'text': 'You can use discount code Tim.', 'start': 93.667, 'duration': 1.341}, {'end': 97.03, 'text': 'That is literally the best resource.', 'start': 95.309, 'duration': 1.721}, {'end': 103.156, 'text': "It's interactive and it will teach you how to get up to a software engineering level in programing really as fast as possible.", 'start': 97.15, 'duration': 6.006}], 'summary': 'Rust programming tutorial assumes basic programming knowledge, recommends programmingexpert.io for beginners.', 'duration': 56.55, 'max_score': 46.606, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw846606.jpg'}, {'end': 148.235, 'src': 'embed', 'start': 120.106, 'weight': 5, 'content': [{'end': 123.528, 'text': 'Spend a minute or two talking about some of the benefits and features of the language.', 'start': 120.106, 'duration': 3.422}, {'end': 125.289, 'text': "Then we'll get into the installation.", 'start': 123.848, 'duration': 1.441}, {'end': 129.354, 'text': 'So rust is a statically and strongly typed programming language.', 'start': 125.769, 'duration': 3.585}, {'end': 130.616, 'text': "It's also compiled.", 'start': 129.574, 'duration': 1.042}, {'end': 133.6, 'text': 'And what that means is that if you write a rust program,', 'start': 130.856, 'duration': 2.744}, {'end': 141.25, 'text': "you compile it into a binary executable file and that file can be ran by anyone who doesn't actually have rust installed.", 'start': 133.6, 'duration': 7.65}, {'end': 148.235, 'text': 'So this differs from something like Python or JavaScript or Ruby, where you actually need a Python interpreter, for example,', 'start': 141.59, 'duration': 6.645}], 'summary': 'Rust is a statically typed language, compiled into binary executable files, allowing running without requiring rust installation.', 'duration': 28.129, 'max_score': 120.106, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8120106.jpg'}, {'end': 200.083, 'src': 'embed', 'start': 160.305, 'weight': 1, 'content': [{'end': 164.947, 'text': 'Continuing here, Rust is known as a very fast and reliable programing language.', 'start': 160.305, 'duration': 4.642}, {'end': 167.809, 'text': "It's very good at error handling and catching bugs.", 'start': 165.188, 'duration': 2.621}, {'end': 174.012, 'text': "And a lot of developers use it because it is very efficient, like it's a very fast language in terms of execution speed.", 'start': 168.069, 'duration': 5.943}, {'end': 176.653, 'text': 'But it also is not extremely difficult to write it.', 'start': 174.332, 'duration': 2.321}, {'end': 180.795, 'text': 'The main benefit of Rust is that it has a bunch of high level features,', 'start': 177.034, 'duration': 3.761}, {'end': 187.979, 'text': 'but it also gives you control of lower level features and code without kind of the difficulty of languages that typically do that,', 'start': 180.795, 'duration': 7.184}, {'end': 189.52, 'text': 'like C or C plus plus.', 'start': 187.979, 'duration': 1.541}, {'end': 192.001, 'text': 'So really, that is why you would use rust.', 'start': 190.02, 'duration': 1.981}, {'end': 195.622, 'text': 'You want to make an efficient, scalable, very fast system of some sort.', 'start': 192.081, 'duration': 3.541}, {'end': 200.083, 'text': "But you don't want to deal with kind of the annoyance of writing code, for example, in C.", 'start': 195.862, 'duration': 4.221}], 'summary': 'Rust is a fast, reliable language with high and low-level control, preferred for efficient and scalable systems, without the difficulty of c.', 'duration': 39.778, 'max_score': 160.305, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8160305.jpg'}, {'end': 235.056, 'src': 'embed', 'start': 212.606, 'weight': 3, 'content': [{'end': 221.809, 'text': 'So Rust allows you to make command line tools, web services, dev ops tools, embedded devices or embedded systems, cryptocurrency related stuff,', 'start': 212.606, 'duration': 9.203}, {'end': 225.07, 'text': 'bio informatics, search engines, machine learning.', 'start': 221.809, 'duration': 3.261}, {'end': 227.991, 'text': "And it's actually used in part of the Firefox browser.", 'start': 225.13, 'duration': 2.861}, {'end': 233.615, 'text': 'If you want to learn more about this language, I will link the rust programming language book in the description.', 'start': 228.372, 'duration': 5.243}, {'end': 235.056, 'text': 'This is completely free.', 'start': 233.955, 'duration': 1.101}], 'summary': 'Rust is versatile, used in firefox, for web services, and more.', 'duration': 22.45, 'max_score': 212.606, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8212606.jpg'}], 'start': 8.442, 'title': 'Rust programming', 'summary': 'Introduces a new tutorial series on rust programming language with a plan of 15-20 videos, aimed at audiences with prior programming knowledge and covers the benefits, features, installation process for mac, linux, and windows, and its applications like command line tools, web services, and dev ops tools.', 'chapters': [{'end': 103.156, 'start': 8.442, 'title': 'Rust programming series launch', 'summary': 'Introduces a new tutorial series on rust programming language with a plan of 15-20 videos, aimed at audiences with prior programming knowledge, and a mention of a related programming course.', 'duration': 94.714, 'highlights': ['The tutorial series on Rust programming language will consist of 15-20 videos, covering everything from setting up the environment to advanced concepts.', 'The series is designed for audiences with some familiarity with programming, assuming knowledge of variables and command prompts.', 'A related programming course, ProgrammingExpert.io, is mentioned as a resource for beginner programmers, with a discount code available.']}, {'end': 267.358, 'start': 103.536, 'title': 'Introduction to rust programming', 'summary': 'Introduces rust programming language, covering its benefits, features, installation process for mac, linux, and windows, and its applications like command line tools, web services, dev ops tools, and more.', 'duration': 163.822, 'highlights': ['Rust is a statically and strongly typed programming language, compiled into a binary executable file that can be run without having Rust installed.', 'Rust is known for its speed and reliability, efficient error handling, and catching bugs.', 'Rust offers high-level features and control over lower-level features without the complexity of languages like C or C++.', 'Rust can be used to develop a variety of applications, including command line tools, web services, dev ops tools, embedded systems, cryptocurrency-related projects, bioinformatics, search engines, machine learning, and is used in part of the Firefox browser.']}], 'duration': 258.916, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw88442.jpg', 'highlights': ['The tutorial series on Rust programming language will consist of 15-20 videos, covering everything from setting up the environment to advanced concepts.', 'Rust is known for its speed and reliability, efficient error handling, and catching bugs.', 'Rust offers high-level features and control over lower-level features without the complexity of languages like C or C++.', 'Rust can be used to develop a variety of applications, including command line tools, web services, dev ops tools, embedded systems, cryptocurrency-related projects, bioinformatics, search engines, machine learning, and is used in part of the Firefox browser.', 'The series is designed for audiences with some familiarity with programming, assuming knowledge of variables and command prompts.', 'Rust is a statically and strongly typed programming language, compiled into a binary executable file that can be run without having Rust installed.', 'A related programming course, ProgrammingExpert.io, is mentioned as a resource for beginner programmers, with a discount code available.']}, {'end': 589.514, 'segs': [{'end': 295.858, 'src': 'embed', 'start': 268.098, 'weight': 0, 'content': [{'end': 274.463, 'text': 'So with that said, that is rust again, a great programing language, relatively easy to learn, at least from my perspective.', 'start': 268.098, 'duration': 6.365}, {'end': 278.085, 'text': "With that said, let's get into the setup and start writing some rust code.", 'start': 274.783, 'duration': 3.302}, {'end': 278.626, 'text': 'All right.', 'start': 278.325, 'duration': 0.301}, {'end': 280.467, 'text': "So now we're going to move on to installation.", 'start': 278.646, 'duration': 1.821}, {'end': 283.469, 'text': 'Now there is different steps here for Windows, Mac and Linux.', 'start': 280.587, 'duration': 2.882}, {'end': 289.653, 'text': 'So just go to the appropriate timestamp in the video player for which operating system reflects yours.', 'start': 283.729, 'duration': 5.924}, {'end': 291.695, 'text': "Now I'm going to show you Windows first.", 'start': 290.094, 'duration': 1.601}, {'end': 295.858, 'text': 'So to install rust on Windows, first of all, you can reference this page right here.', 'start': 292.055, 'duration': 3.803}], 'summary': 'Introduction to rust programming language and installation process for windows, mac, and linux.', 'duration': 27.76, 'max_score': 268.098, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8268098.jpg'}, {'end': 329.834, 'src': 'embed', 'start': 302.001, 'weight': 3, 'content': [{'end': 305.422, 'text': 'uh anyways, what we need to do on windows is go to this page right here.', 'start': 302.001, 'duration': 3.421}, {'end': 311.125, 'text': "I'll leave this direct link in the description and we need to download the graphical installer for rust.", 'start': 305.702, 'duration': 5.423}, {'end': 314.126, 'text': 'So we can download a rust a knit dot exe.', 'start': 311.325, 'duration': 2.801}, {'end': 318.768, 'text': "Uh, we're going to use the 64 bit version, unless for some reason you're on a 32 bit machine.", 'start': 314.146, 'duration': 4.622}, {'end': 321.389, 'text': 'Although I imagine most of you are on 64 bits.', 'start': 319.128, 'duration': 2.261}, {'end': 322.169, 'text': 'So just click on 64.', 'start': 321.409, 'duration': 0.76}, {'end': 325.191, 'text': "If you're unsure, Anyways, you're going to download that.", 'start': 322.169, 'duration': 3.022}, {'end': 329.834, 'text': 'That is going to give you a program that you can just double click on wherever you download it to.', 'start': 325.711, 'duration': 4.123}], 'summary': 'Download rust graphical installer for windows, 64-bit version recommended.', 'duration': 27.833, 'max_score': 302.001, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8302001.jpg'}, {'end': 368.426, 'src': 'embed', 'start': 339.339, 'weight': 1, 'content': [{'end': 341.96, 'text': "You don't need to mess with anything and then hit enter.", 'start': 339.339, 'duration': 2.621}, {'end': 344.722, 'text': 'Now I already have this installed, so it went very fast.', 'start': 342.581, 'duration': 2.141}, {'end': 348.244, 'text': 'But for you guys, it will install rust and then you should be good to go.', 'start': 345.342, 'duration': 2.902}, {'end': 355.099, 'text': 'Now, there is one more thing on Windows, however, you do need to install and this is going to be the Microsoft C++ build tools.', 'start': 348.755, 'duration': 6.344}, {'end': 356.94, 'text': "So I'll leave this link in the description.", 'start': 355.419, 'duration': 1.521}, {'end': 359.221, 'text': 'Go here, download the build tools.', 'start': 357.4, 'duration': 1.821}, {'end': 362.042, 'text': 'This is the 2019 build tools, which is what we want.', 'start': 359.281, 'duration': 2.761}, {'end': 368.426, 'text': "And then when you go through this installer here, mine probably looks a little bit different than yours, so I'm not actually going to run it.", 'start': 362.463, 'duration': 5.963}], 'summary': 'To use rust, install it and microsoft c++ build tools, 2019.', 'duration': 29.087, 'max_score': 339.339, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8339339.jpg'}, {'end': 425.512, 'src': 'embed', 'start': 396.888, 'weight': 2, 'content': [{'end': 403.515, 'text': 'And if you want to test if your installation is working, open up your command prompt on Windows and just type in Rust C.', 'start': 396.888, 'duration': 6.627}, {'end': 407.9, 'text': "And if you get some output from this command, then you're all good to go and we can move on to the next step.", 'start': 403.515, 'duration': 4.385}, {'end': 410.223, 'text': 'Now, let me show you the installation on Mac.', 'start': 408.361, 'duration': 1.862}, {'end': 410.803, 'text': 'All right.', 'start': 410.523, 'duration': 0.28}, {'end': 412.564, 'text': "So I'm now on my Mac computer.", 'start': 410.843, 'duration': 1.721}, {'end': 414.405, 'text': "I'm just going to quickly run you through the steps.", 'start': 412.584, 'duration': 1.821}, {'end': 416.727, 'text': 'This will be the same on Linux as well, by the way.', 'start': 414.545, 'duration': 2.182}, {'end': 419.368, 'text': "So I'm on the page for rust installation.", 'start': 417.027, 'duration': 2.341}, {'end': 425.512, 'text': "Notice now it's not giving me the Windows download buttons because I'm on Mac and all I'm going to do here is just copy this.", 'start': 419.709, 'duration': 5.803}], 'summary': "Test rust installation on windows using 'rust c' command. mac installation steps shown.", 'duration': 28.624, 'max_score': 396.888, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8396888.jpg'}, {'end': 425.512, 'src': 'heatmap', 'start': 396.888, 'weight': 0.871, 'content': [{'end': 403.515, 'text': 'And if you want to test if your installation is working, open up your command prompt on Windows and just type in Rust C.', 'start': 396.888, 'duration': 6.627}, {'end': 407.9, 'text': "And if you get some output from this command, then you're all good to go and we can move on to the next step.", 'start': 403.515, 'duration': 4.385}, {'end': 410.223, 'text': 'Now, let me show you the installation on Mac.', 'start': 408.361, 'duration': 1.862}, {'end': 410.803, 'text': 'All right.', 'start': 410.523, 'duration': 0.28}, {'end': 412.564, 'text': "So I'm now on my Mac computer.", 'start': 410.843, 'duration': 1.721}, {'end': 414.405, 'text': "I'm just going to quickly run you through the steps.", 'start': 412.584, 'duration': 1.821}, {'end': 416.727, 'text': 'This will be the same on Linux as well, by the way.', 'start': 414.545, 'duration': 2.182}, {'end': 419.368, 'text': "So I'm on the page for rust installation.", 'start': 417.027, 'duration': 2.341}, {'end': 425.512, 'text': "Notice now it's not giving me the Windows download buttons because I'm on Mac and all I'm going to do here is just copy this.", 'start': 419.709, 'duration': 5.803}], 'summary': "To test rust installation, type 'rust c' in windows command prompt. installation on mac is similar.", 'duration': 28.624, 'max_score': 396.888, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8396888.jpg'}, {'end': 525.85, 'src': 'heatmap', 'start': 498.023, 'weight': 1, 'content': [{'end': 502.667, 'text': 'There may be an additional step that you need to follow, or you may have not actually ran this command correctly.', 'start': 498.023, 'duration': 4.644}, {'end': 505.269, 'text': "With that said, that's all that I have for you for the installation.", 'start': 503.027, 'duration': 2.242}, {'end': 507.171, 'text': "Now let's actually write some rust code.", 'start': 505.55, 'duration': 1.621}, {'end': 507.772, 'text': 'All right.', 'start': 507.472, 'duration': 0.3}, {'end': 513.538, 'text': "So I'm back on my Windows machine, and I think as I mentioned, I'm going to be using sublime text here as my code editor.", 'start': 507.792, 'duration': 5.746}, {'end': 516.741, 'text': "You can use whatever you'd like, but this one is free and what I'll be using.", 'start': 513.857, 'duration': 2.884}, {'end': 519.464, 'text': 'So you can download this from the link in the description if you want.', 'start': 516.78, 'duration': 2.684}, {'end': 520.826, 'text': 'And I have it open here.', 'start': 519.845, 'duration': 0.981}, {'end': 525.85, 'text': "Now, to start writing our first rust program, I'm just going to go here to file new file.", 'start': 521.326, 'duration': 4.524}], 'summary': 'Instruction on writing rust code using sublime text for windows.', 'duration': 27.827, 'max_score': 498.023, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8498023.jpg'}], 'start': 268.098, 'title': 'Rust installation on windows and mac', 'summary': 'Covers the installation of rust programming language on windows and mac, detailing the steps and requirements for installation, testing the installation, setting up the code editor, and writing the first rust program.', 'chapters': [{'end': 396.868, 'start': 268.098, 'title': 'Rust language installation on windows', 'summary': 'Discusses the installation of rust programming language on windows, mac, and linux, focusing on the steps and requirements for windows installation, including downloading the graphical installer and microsoft c++ build tools.', 'duration': 128.77, 'highlights': ['The installation of Rust on Windows, Mac, and Linux is discussed, with a focus on Windows installation.', 'The steps for installing Rust on Windows, including downloading the graphical installer and Microsoft C++ build tools, are outlined.', 'The requirement to download the graphical installer for Rust, such as rustup-init.exe, is highlighted, emphasizing the 64-bit version.', 'The Microsoft C++ build tools, specifically the 2019 build tools, are mentioned as a requirement for Rust installation on Windows.']}, {'end': 589.514, 'start': 396.888, 'title': 'Rust installation and first program', 'summary': 'Discusses the installation of rust on windows and mac, including the process to test the installation. it also covers setting up the code editor and writing the first rust program.', 'duration': 192.626, 'highlights': ['The chapter discusses the installation of Rust on Windows and Mac, including the process to test the installation.', 'It covers setting up the code editor and writing the first Rust program.']}], 'duration': 321.416, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8268098.jpg', 'highlights': ['The installation of Rust on Windows, Mac, and Linux is discussed, with a focus on Windows installation.', 'The steps for installing Rust on Windows, including downloading the graphical installer and Microsoft C++ build tools, are outlined.', 'The chapter discusses the installation of Rust on Windows and Mac, including the process to test the installation.', 'The requirement to download the graphical installer for Rust, such as rustup-init.exe, is highlighted, emphasizing the 64-bit version.', 'It covers setting up the code editor and writing the first Rust program.', 'The Microsoft C++ build tools, specifically the 2019 build tools, are mentioned as a requirement for Rust installation on Windows.']}, {'end': 899.604, 'segs': [{'end': 626.344, 'src': 'embed', 'start': 589.674, 'weight': 0, 'content': [{'end': 591.615, 'text': "And I've now written my first rust program.", 'start': 589.674, 'duration': 1.941}, {'end': 593.556, 'text': "So I'll quickly break this down for you.", 'start': 592.016, 'duration': 1.54}, {'end': 595.157, 'text': "Then I'll show you how we actually run this.", 'start': 593.596, 'duration': 1.561}, {'end': 597.239, 'text': 'So FN stands for function.', 'start': 595.618, 'duration': 1.621}, {'end': 598.921, 'text': "We'll get into functions later.", 'start': 597.779, 'duration': 1.142}, {'end': 605.789, 'text': "But the main function is a special function in Rust that's going to be executed automatically when you run your Rust program.", 'start': 599.401, 'duration': 6.388}, {'end': 608.112, 'text': 'So you need to make sure you call this function main.', 'start': 606.07, 'duration': 2.042}, {'end': 613.199, 'text': "It's kind of the entry point of your code and anything inside of here will run immediately.", 'start': 608.373, 'duration': 4.826}, {'end': 619.862, 'text': "Now in Rust, You're supposed to have, I believe it is four spaces, not tabs for indentation.", 'start': 613.499, 'duration': 6.363}, {'end': 620.942, 'text': 'Although let me check on that.', 'start': 619.882, 'duration': 1.06}, {'end': 626.344, 'text': 'So Russ does actually recommend that you have four spaces as opposed to tabs for your indentation level.', 'start': 621.242, 'duration': 5.102}], 'summary': 'First rust program with main function entry point and 4 spaces indentation recommended.', 'duration': 36.67, 'max_score': 589.674, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8589674.jpg'}, {'end': 797.175, 'src': 'embed', 'start': 767.421, 'weight': 2, 'content': [{'end': 769.862, 'text': 'So this is actually the executable binary file.', 'start': 767.421, 'duration': 2.441}, {'end': 775.464, 'text': 'And this is what we can give to people if we wanted them to run our rust code without having rust installed.', 'start': 770.262, 'duration': 5.202}, {'end': 779.205, 'text': 'So, rather than giving them the source code which is in our RS file,', 'start': 775.824, 'duration': 3.381}, {'end': 783.007, 'text': "we give them the dot exe file and you don't need to worry about this third file right here.", 'start': 779.205, 'duration': 3.802}, {'end': 786.849, 'text': "So now how do we actually run our code? Well, we've just compiled the code.", 'start': 783.507, 'duration': 3.342}, {'end': 788.95, 'text': 'Now we have the executable file.', 'start': 787.269, 'duration': 1.681}, {'end': 791.912, 'text': "And to do this, it's a bit different on each operating system.", 'start': 789.29, 'duration': 2.622}, {'end': 797.175, 'text': "But on Windows, it's going to be dot backslash and then main dot exe like that.", 'start': 791.972, 'duration': 5.203}], 'summary': 'Executable binary file allows running rust code without rust installed; on windows, run as .\\main.exe', 'duration': 29.754, 'max_score': 767.421, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8767421.jpg'}, {'end': 854.996, 'src': 'embed', 'start': 826.799, 'weight': 3, 'content': [{'end': 828.641, 'text': 'You can then run that executable file.', 'start': 826.799, 'duration': 1.842}, {'end': 829.582, 'text': 'And there you go.', 'start': 829.001, 'duration': 0.581}, {'end': 832.746, 'text': 'You have ran and executed your first rust program.', 'start': 829.742, 'duration': 3.004}, {'end': 839.369, 'text': 'Now, if you are having trouble navigating here in the terminal, I will leave a video in the description that shows you some basic terminal commands.', 'start': 833.266, 'duration': 6.103}, {'end': 843.851, 'text': 'You do need to be familiar with this to be able to execute your rust code properly.', 'start': 839.709, 'duration': 4.142}, {'end': 846.132, 'text': "And I won't go through explaining all the CD commands.", 'start': 844.251, 'duration': 1.881}, {'end': 849.374, 'text': "So video in the description, if you weren't able to follow along with these steps.", 'start': 846.152, 'duration': 3.222}, {'end': 850.394, 'text': 'All right.', 'start': 850.114, 'duration': 0.28}, {'end': 853.295, 'text': "So that's really all that I have for you in this first video.", 'start': 850.674, 'duration': 2.621}, {'end': 854.996, 'text': 'This is our first Rust program.', 'start': 853.595, 'duration': 1.401}], 'summary': 'First rust program successfully executed, with basic terminal navigation tips provided.', 'duration': 28.197, 'max_score': 826.799, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8826799.jpg'}], 'start': 589.674, 'title': 'Rust programming fundamentals', 'summary': 'Introduces the basics of writing and running a rust program, emphasizing the main function as the entry point and the recommended indentation style of four spaces over tabs. it also explains how to run and compile rust code, demonstrating the process with step-by-step instructions and highlighting the significance of platform-independent executable files for ease of distribution. additionally, it encourages viewers to reference a video for basic terminal commands.', 'chapters': [{'end': 626.344, 'start': 589.674, 'title': 'Introduction to rust programming', 'summary': 'Introduces the basics of writing and running a rust program, emphasizing the main function as the entry point and the recommended indentation style of four spaces over tabs.', 'duration': 36.67, 'highlights': ['The main function in Rust serves as the entry point of the code and is executed automatically when the program is run.', 'Rust recommends using four spaces for indentation instead of tabs.', 'The chapter covers the basics of writing and running a Rust program, emphasizing the main function and indentation style.']}, {'end': 899.604, 'start': 626.664, 'title': 'Running and compiling rust code', 'summary': 'Explains how to run and compile rust code, demonstrating the process with step-by-step instructions and highlighting the significance of executable files. it emphasizes the platform-independent nature of the executable files, allowing ease of distribution. additionally, it encourages viewers to reference a video for basic terminal commands.', 'duration': 272.94, 'highlights': ["The chapter explains the process of running and compiling Rust code, emphasizing the creation of an executable binary file for platform-independent distribution, ensuring that the code can be executed regardless of the user's environment setup.", "The process of running and compiling Rust code is demonstrated through step-by-step instructions, including navigating the terminal, using the 'rustc' command for compilation, and executing the resulting executable file.", 'The significance of the executable file is highlighted, emphasizing its capability to be distributed to others, enabling them to run the Rust code without requiring Rust installation, thereby simplifying the sharing and execution process.']}], 'duration': 309.93, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/T_KrYLW4jw8/pics/T_KrYLW4jw8589674.jpg', 'highlights': ['The main function in Rust serves as the entry point of the code and is executed automatically when the program is run.', 'Rust recommends using four spaces for indentation instead of tabs.', "The chapter explains the process of running and compiling Rust code, emphasizing the creation of an executable binary file for platform-independent distribution, ensuring that the code can be executed regardless of the user's environment setup.", "The process of running and compiling Rust code is demonstrated through step-by-step instructions, including navigating the terminal, using the 'rustc' command for compilation, and executing the resulting executable file.", 'The significance of the executable file is highlighted, emphasizing its capability to be distributed to others, enabling them to run the Rust code without requiring Rust installation, thereby simplifying the sharing and execution process.', 'The chapter covers the basics of writing and running a Rust program, emphasizing the main function and indentation style.']}], 'highlights': ['Rust can be used for various applications like web services, dev ops tools, embedded systems, and more', 'Rust programming tutorial series includes 15-20 videos covering setup and advanced concepts', 'Rust offers high-level features and control over lower-level features without complexity', 'Rust is known for its speed, reliability, efficient error handling, and bug catching', 'Rust is a statically and strongly typed language compiled into a binary executable file', 'The main function in Rust serves as the entry point of the code and is executed automatically', 'Rust recommends using four spaces for indentation instead of tabs', 'The tutorial series is designed for audiences with some familiarity with programming', 'The process of running and compiling Rust code is demonstrated through step-by-step instructions', 'The installation of Rust on Windows, Mac, and Linux is discussed, with a focus on Windows installation']}