Getting Started with Rust on Windows and Visual Studio Code
HTML-код
- Опубликовано: 14 фев 2021
- Stuck getting started with Rust in VS Code? Let me help! This post will have you compiling, debugging, and unit testing Rust code in no time.
Visual Studio Build Tools 2019: visualstudio.microsoft.com/th...
Rustup Installation Page: www.rust-lang.org/tools/install
Rust Extension Pack: marketplace.visualstudio.com/...
Rust Test Explorer: marketplace.visualstudio.com/...
Debug Rust on Windows with Visual Studio Code and the MSVC Debugger, Bryce van Dyk: www.brycevandyk.com/debug-rus...
Music: A Sweet Feeling: library.techsmith.com/camtasi... Наука
Thanks Bryan! This got me up and running with Rust in VS Code - well done!
Very useful video! Thank you for putting the entire setup process in one concise video!
Thanks Bryan! Very clear tutorial.
Thanks Bryan! I'm just starting out with Rust and this was a very useful video to get my environment up and running.
I'm so glad that it helped you, Ben! Thanks for the kind words!
IF I HAD FOUND THIS VIDEO SOONER
IT WOULDVE SAVED ME LIKE 48 HOURS
TY
What a great tutorial with a great voice!
you saved my day and straight to the business :)
Thanks alot
Thank you for your detailed guide on how to install RUST-Lang on WIndows with VSCode. God bless
Really well done!
Great video - thanks!
Thanks as well, this all works PERIOD, Simples. Followed everything above :), I wasted so much time on the other Rust Extensions that are just buggy and dont work as fluid as this. I now have a working development enironment to start RUST coding, thanks again :)
I'm so glad that this helped you, David! Thanks for your kind words!
very helpful thanks!
Your video is excellent😀
It's a pitty that you didn't continued a full Rust course, because you have the good skills for explaining in simple and detailed way, so anybody could understand ! I have no programing background and I want to learn Rust, even though everybody say that I should learn some other programing language, build a knowledge base and then start with Rust. I stick to start with Rust and I think the difficulty of learning Rust comes from the "teachers" who refuse to explain to people like me, with no programing background and they skip a lot of basic and newby important information. So, from what I saw in youre video, you could be the first that have the skills and patient, to explain Rust for "dummies"" ! If you ever are going to make a full Rust tutorial for beginers in programing like me, I would love to watch youre videos ! Also, I already subscribe to your channel, even if you haven't publish for the last 2 years.
Good video, good info, good way of explaining and in detail.. thank you !
bro ur the best thank you som muc h
What about to make a Rust tutorial? I'd watch It. And I believe that others would appreciate it too!
0:48 😂😂Goood one
I have a strange issue with Git bash terminal on my Windows 10 machine. Whenever I am prompted for something, the terminal continues as if I pressed Enter without typing anything. This makes working with terminal impossible, as I can't provide nearly any user input.
This happens when i’m with rust and c++. It strangely does happen with other languages
As far as I understand you have to build and run separately? Is there a way to make it build and run at once?
year 23 I found this video
should i install more latest version of build tool 2022?
I did everything exactly like you but the code wont compile and I always get the error message:"linker `link.exe` not found". Could you maybe help me out?
Hello, I am a new user of VS code and I have a question: after I create the "launch.json" file and I change the program, I get the following error: launch: "program": "${workspaceFolder}/target/debug/hello-world.exe" does not exist. Do I have to manually create the executable? And if so, how can it be done?
I believe you have to build the program first by pressing control + Shift + B to run the build task. This will compile your code into the exe file that the debugger runs. I am also having this issue setting up my env. Tell me if this works for you.
@@DustinWatson01 Unfortunately I managed to finish the project a couple of month ago and I do not recall exactly how I did it since I have had the unfortune of not being able to work with Rust since then. What I remember is that I can build, debug and run my Rust project from the Command Prompt. I think I begin by going into the folder of the program, then typing cargo build to start debugging the program and then I type cargo run to execute the program. And I am not using any "tasks.json" file to do this. Making Rust run properly in VS Code was such a pain in the butt and I watched so many useless guides, that I do not actually remember how I made the environment work. I think I used the guides on rust-lang and at the end managed to make it work. But for the life of my I can not remember how. Sorry I can not be of much help. I hope you will manage to overcome this problem too.
Just to confirm if someone is having the same issue one day: as @Dustin Watson said, you first have to build the program by pressing control + shift + B. This creates the /target/debug folder and the executable in there. The name of the exe is tha same as the name of the parent folder of the project.
Can't we install rust without installing visual studio installer?
cargo : The term 'cargo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
I was receive this warning
type "cargo new projectName" into the terminal to generate the cargo.toml files and such.
In my case add configuration C++ (Windows) just generates an empty launch.json file.
On the other hand I didn't need to install anything extra, other than the rust extension, to be able to set breakpoints.
at first I thought this was a computer voice narrating the video
6.54?
6:52
If I compare python programming download and ide with rust programming download and ide , I can say "RUST" is painful to even run first file hello world.
That's the price you pay for working with an emerging language. With funding from Microsoft, Intel and Mozilla, things will likely improve.
Also, if you are geeky enough to learn Rust, setting this up shouldn't be too much of a challenge. System languages are always more demanding than scripting languages. A Formula One car is harder to drive than the family runabout.
@@tullochgorum6323 my problem with rust is that you have to download other software like visual basic c++ tool , I will wait for that day when rust don't need any other applications/software to run its code like python/c and other programming language.
@@Shashank_Shahi1989 Your choice. I've just compiled my first little app and it took me all of 10 minutes, with the help of this video. Hardly a deal-killer for most. It's not as rich an environment as for VS C++, but then it doesn't need to be, because you'll be doing a fraction of the debugging... If it compiles, it's very likely safe unless you choose to push it to the limits.
@@tullochgorum6323 I will try rust after sometime.
@@Shashank_Shahi1989 You do need separate tools for C. And most languages generally.
你们能不能说Chinese,我看不懂啊
Why do you sound like your voice is generated by AI but i know its not...
but it is
I'm a rust noob ... the video and comments thread here encouraged me to try ... I applied the code provided here religiously on two different windows 10 computers a number of times on each ... HelloWorld\cargo" does not exist. "problemMatcher": [ "$rustc", "$rust-panic"]