I have installed Rust bundle from 1YiB. But I clearly don't understand how to use VSC. Can somebody please get me on my way? First of all, how do I create a 'Hello world!'?
What is that?
And what's that? Do you mean VS Code?
You don't even need an IDE for that, just a virtual console. Try cargo new
.
1YiB is the publisher, Visual Studio Code is VSC.
I would like to work in an IDE, that's why I try to make it work in VSC.
I have noticed that rust analyzer gives the warning message " Cannot activate because ./out/main not found". Okay, but I don't know how to solve this.
Have you already tried the vscode doc for creating a hello world app?:
That did the trick, thank you.
I am going to work through this document.
It seems to be a steep learning curve. For instance, I don't understand why there is not a Rust new file option in my VSC file menu. However. I have a Hello World running. Next step is rtfm.
The basics for using Rust are also covered in "The Book", which is more or less required reading when starting out. This doesn't cover VsCode usage, but is a much more complete guide for learning the language and using Cargo basics. You will need to know how to use Cargo, including how to create and maintain the Cargo.toml
file -- VsCode is not a complete substitute for that. So in that sense, The Book is a better starting point than the VsCode manual.
Okay, cool. I wondered about that. Because I never saw syntax like "let mut" before. Let I know from Basic and Pascal. But I need a source to figure out Rust specific syntax. And also why. Because I think you can do really neat stuff with all this extra syntax. So I really need to know the reason behind it. The language is already quite more technical than Phyton.
The indication that for secure software that performs you end up with Rust made me start to learn it. So I obviously need a the book. Thank you.