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
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.
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?
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.
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
watching in 2023, Doug's rust videos are so better than several paid courses
All of these videos are so good. Just compiled my first Rust program : )
Thanks for clicking 'Like' and Subscribing!
Great Explanation. It really helped. thanks a lot
Simple example and explained well...thanks!!
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
Thanks, I was tripped up trying to use the run option in the VS Code menus rather than using the termina.
RUST error: linker `link.exe` not found (VS Code portable)
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.
@@NoahNobody thank you so much brother. I was really pissed off but you just solved my problem.
@@NoahNobody thank you for this. i also had the same problem and you manged to solve it. Thanks again.
@@NoahNobody thank you
@@NoahNobody thank you so much
a Cargo.lock under target never shows up when I try this. Please help.
Error showing : failed to parse manifest
my rust is saying that your version"2018"is wrong
i keep getting this ....virtual manifests must be configured with [workspace]
PS C:\Workspace Setup>
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?
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.
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
Same as well