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...
  • НаукаНаука

Комментарии • 47

  • @danielgrass5859
    @danielgrass5859 2 года назад +1

    Thanks Bryan! This got me up and running with Rust in VS Code - well done!

  • @shoockygaming6024
    @shoockygaming6024 Месяц назад

    Very useful video! Thank you for putting the entire setup process in one concise video!

  • @hemendrarawat
    @hemendrarawat 2 года назад

    Thanks Bryan! Very clear tutorial.

  • @benjamincarter9606
    @benjamincarter9606 3 года назад +10

    Thanks Bryan! I'm just starting out with Rust and this was a very useful video to get my environment up and running.

    • @_twelve21
      @_twelve21  3 года назад

      I'm so glad that it helped you, Ben! Thanks for the kind words!

  • @noctifersummanus15
    @noctifersummanus15 Год назад

    IF I HAD FOUND THIS VIDEO SOONER
    IT WOULDVE SAVED ME LIKE 48 HOURS
    TY

  • @Chaminox
    @Chaminox Год назад

    What a great tutorial with a great voice!

  • @ZeeshanAzmi
    @ZeeshanAzmi 3 месяца назад

    you saved my day and straight to the business :)
    Thanks alot

  • @Kaycii.Austine
    @Kaycii.Austine 2 месяца назад

    Thank you for your detailed guide on how to install RUST-Lang on WIndows with VSCode. God bless

  • @exxzxxe
    @exxzxxe 10 месяцев назад

    Really well done!

  • @piotr6573
    @piotr6573 2 года назад

    Great video - thanks!

  • @dthomsonit
    @dthomsonit 3 года назад

    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 :)

    • @_twelve21
      @_twelve21  3 года назад

      I'm so glad that this helped you, David! Thanks for your kind words!

  • @KimJaeho
    @KimJaeho Год назад

    very helpful thanks!

  • @109benn
    @109benn Год назад

    Your video is excellent😀

  • @pici24
    @pici24 11 месяцев назад +3

    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 !

  • @codegodtreviso2841
    @codegodtreviso2841 2 года назад

    bro ur the best thank you som muc h

  • @HamiltonGJr
    @HamiltonGJr Год назад

    What about to make a Rust tutorial? I'd watch It. And I believe that others would appreciate it too!

  • @Amazingspidermon-hl3xc
    @Amazingspidermon-hl3xc Год назад

    0:48 😂😂Goood one

  • @matinodoom5883
    @matinodoom5883 Год назад

    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

  • @mateuszczylok9817
    @mateuszczylok9817 2 года назад

    As far as I understand you have to build and run separately? Is there a way to make it build and run at once?

  • @user-mfsc-2024
    @user-mfsc-2024 7 месяцев назад

    year 23 I found this video
    should i install more latest version of build tool 2022?

  • @5baum
    @5baum 2 года назад

    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?

  • @nairpic7360
    @nairpic7360 3 года назад +1

    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?

    • @DustinWatson01
      @DustinWatson01 2 года назад

      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.

    • @nairpic7360
      @nairpic7360 2 года назад

      ​@@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.

    • @danielgrass5859
      @danielgrass5859 2 года назад

      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.

  • @ranitchatterjee5552
    @ranitchatterjee5552 Месяц назад

    Can't we install rust without installing visual studio installer?

  • @ngocphuhoangtran6068
    @ngocphuhoangtran6068 2 года назад +1

    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

  • @Sausytime
    @Sausytime 2 года назад +2

    type "cargo new projectName" into the terminal to generate the cargo.toml files and such.

  • @Ian-eb2io
    @Ian-eb2io Год назад

    In my case add configuration C++ (Windows) just generates an empty launch.json file.

    • @Ian-eb2io
      @Ian-eb2io Год назад

      On the other hand I didn't need to install anything extra, other than the rust extension, to be able to set breakpoints.

  • @jackthebear21
    @jackthebear21 2 года назад

    at first I thought this was a computer voice narrating the video

  • @prameon
    @prameon 2 года назад

    6.54?

  • @Shashank_Shahi1989
    @Shashank_Shahi1989 3 года назад +5

    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.

    • @tullochgorum6323
      @tullochgorum6323 3 года назад +3

      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.

    • @Shashank_Shahi1989
      @Shashank_Shahi1989 3 года назад

      @@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.

    • @tullochgorum6323
      @tullochgorum6323 3 года назад +1

      @@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.

    • @Shashank_Shahi1989
      @Shashank_Shahi1989 3 года назад

      @@tullochgorum6323 I will try rust after sometime.

    • @Ian-eb2io
      @Ian-eb2io Год назад

      @@Shashank_Shahi1989 You do need separate tools for C. And most languages generally.

  • @user-hp1ms5gt4k
    @user-hp1ms5gt4k 2 года назад

    你们能不能说Chinese,我看不懂啊

  • @Mempler
    @Mempler 2 года назад

    Why do you sound like your voice is generated by AI but i know its not...

  • @neovuartificialintelligenc9096

    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"]