I installed rust from rust.lang.org/tools/install - 64 bit. I didn’t get any prompts for visual studio 2022 possibly because I have VS 2019 installed?
My dir C:\Users\Gene.cargo\bin - contains:
The instructions for checking the installation say “To check whether you have Rust installed correctly, open a shell and enter this line:” $ rustc --version
My question is how do I open a “shell”? I can open the CMD window but how do I open this “shell”?
Thanks, Semicoleon
I was unaware that the CMD (dos box?) was a cell. Moreover, I was expecting to see the $ prompt.
Now with cmd open, I type rustc and get a lot of return data. Still, no $ which I guess I must be inside the terminal.
I should add that I am most familiar with an IDE as opposed to the command line which I did use many many years ago.
I am looking forward to learning and using rust for, and as a hobby.
I'd also recommend using Windows Terminal (If you aren't already), the command prompt/cmd are considered legacy these days, and WT is just plain nicer.
Still trying but...
I am new to coding with a terminal. I am used to opening an IDE and entering code -debugging- running, and making it better.
I did install WT - which is much better than CMD. That said, it took me too long to create the hello_world directory successfully. Then the next step (in the book) said "make a new source file and call it main.rs How do I make a source file? is it made in WT? The book explains why the name has an underscore but not how to create a new source file. Then it says, "Now open the mains.rs file you just created ..."
I have a lot to learn! Is there some book that covers this stuff? Better yet a video!
Thanks for your patience!
It's a bit hard to answer this, because there are many different ways of creating a text file - as many ways as there are IDEs and text editors!
You probably need to pick the IDE or editor that you want to use, and get comfortable with it, before proceeding with the hello_world tutorial. If you want a full IDE experience, Visual Studio Code is a good choice. If you want a basic text editor, Notepad++ is great.
Thanks rj
OK, good answer. Now I realize that I am to create a text file and store it in the "hello world" folder created with the tutorial in the book. I will look into notepad++.
Thanks for the reply semi. I have worked with visual studio but found it a bit complicated to get it to work with Arduino. I want to use a GUI with rust. is there a place that shows how to do so?