Rust Hello World

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024

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

  • @smratikatiyar
    @smratikatiyar Год назад +2

    watching in 2023, Doug's rust videos are so better than several paid courses

  • @tobuslieven
    @tobuslieven 2 года назад +3

    All of these videos are so good. Just compiled my first Rust program : )

  • @dougmilford7814
    @dougmilford7814  5 лет назад +1

    Thanks for clicking 'Like' and Subscribing!

  • @abiraja-vg2bo
    @abiraja-vg2bo 5 лет назад +1

    Great Explanation. It really helped. thanks a lot

  • @keithmilford7642
    @keithmilford7642 5 лет назад +1

    Simple example and explained well...thanks!!

    • @wiktorwektor123
      @wiktorwektor123 4 года назад +1

      there is much simpler way of making "Hello World" program in Rust. It literally requires typing 3 words on command line:
      cargo new program_name
      Where "program_name" is what you want to call program. It will create Cargo.toml, src dirctory with main.rs file that already has main function that prints "Hello Wordl" to console.
      All you need to do after this 3 words is enter folder and type: cargo run

  • @ColdPotato
    @ColdPotato 4 года назад

    Thanks, I was tripped up trying to use the run option in the VS Code menus rather than using the termina.

  • @Mytest437
    @Mytest437 5 лет назад +3

    RUST error: linker `link.exe` not found (VS Code portable)

    • @NoahNobody
      @NoahNobody 4 года назад +7

      I had a similar issue "error: linking with `link.exe` failed: exit code: 1"
      To solve it, I did
      rustup toolchain install stable-x86_64-pc-windows-gnu
      then
      rustup default stable-x86_64-pc-windows-gnu
      and
      cargo build
      Compiling hello v0.1.0 (C:\Users\leke\dev
      ust\hello)
      Finished dev [unoptimized + debuginfo] target(s) in 1.66s
      I also had AVGuard (antivirus) panic a bit when I ran `cargo run`, but it was ok.

    • @rishabhbhagwati5013
      @rishabhbhagwati5013 4 года назад

      @@NoahNobody thank you so much brother. I was really pissed off but you just solved my problem.

    • @dokidoki408
      @dokidoki408 4 года назад

      @@NoahNobody thank you for this. i also had the same problem and you manged to solve it. Thanks again.

    • @cestlextase
      @cestlextase 4 года назад

      @@NoahNobody thank you

    • @quisp6228
      @quisp6228 4 года назад

      @@NoahNobody thank you so much

  • @MattieCooper10000
    @MattieCooper10000 4 года назад

    a Cargo.lock under target never shows up when I try this. Please help.

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

    Error showing : failed to parse manifest

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

    my rust is saying that your version"2018"is wrong

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

    i keep getting this ....virtual manifests must be configured with [workspace]
    PS C:\Workspace Setup>

  • @leonf.7893
    @leonf.7893 4 года назад +2

    Thanks for making these videos. I really like your teaching style and I'm very excited about Rust. I'm a front-end JS dev and one of my favourite tools is Quokka, a real-time inline output reporter. Does Rust have anything similar?

    • @dougmilford7814
      @dougmilford7814  4 года назад +2

      Hey, I'm glad you like the videos! Quokka is interesting and I can see how that could be very useful. I'm not sure if there's a Rust extension like Quokka for vs code. But I'll admit I haven't looked too hard, so maybe.

  • @MattieCooper10000
    @MattieCooper10000 4 года назад

    You explained everything better than anyone ever on Earth and yet I get an Error saying Rust analyzer failed to load workspace failed to read cargo😪 error: failed to parse manifest at `C:\User