Hi everyone, I'm new to Rust, and I don't know how start anything. Recommendations and how install editor and compiler of Rust
read the rust programming language book first:
Install Zed editor: Installation | Install Zed - macOS, Linux, Windows
Install Rust compiler: Install Rust - Rust Programming Language
Read Rust book: The Rust Programming Language - The Rust Programming Language
Ask questions here when you get confused or stuck.
Recent beginner here. For how to get started learning to code Rust, it's going to depend on the individual and on specific objectives. I tried reading the Rust Book first. I did not get very far. There was too much information for me and the software I was developing. I used the interactive tutorial 100 Exercises to Learn Rust. That came with RustRover, the IDE I use (though it's also free to download). So picking that tutorial was because it was just there. The tutorial is just a start.
Probably a year I didn't install anything, I just used an online Rust playground. Finally I got ready to install Rust locally. I checked out Rust compiler and build it from the sources. Next, I downloaded VSC and started typing my first Rust programs. It was binary files viewer. Probably it took a year to finish. My progress after became a bit faster. I implemented a cloud Rust IDE. I used Java web server first, but then implemented its Rust counterpart. Finally I added websockets to the server that made my IDE completely Java free. I implemented some analog of Cargo, freed me from any Rust tools, but compiler. As only I have my complete toolchain in place, I started seriously learning Rust. I do not recommend you my way, let's keep it just mine. I just want to tell - it doesn't matter what do you use, if you want to learn Rust, you will be an expert in it, sooner or later. Good luck.
- First, you need to install the Rust environment from the official website. Install Rust - Rust Programming Language
- To learn the basic concepts, I recommend consulting Rust's built-in documentation by running the
rustup doccommand. - To learn the syntax, you can refer to the https://rustlings.rust-lang.org/ project.
- Of course, you can also leverage AI. There are many advanced concepts that I struggled to grasp for years, but with the help of AI, I’ve finally managed to understand unsafe/ FFI, and the material in The Rustonomicon.
The approach I recommend is: consult official documentation + use AI assistance + practice coding + observe Rust compiler logs + post questions for help ===> then summarize your own notes.
Finally, regarding the IDE, I use VS Code with the rust-analyzer extension installed—though, of course, you are free to choose another one.
Good luck~
I started by reading the Rust book, but there’s so much information – I’ve been practising and reading for about two or three months now and I’m only just managing to grasp a few basics. I think the best approach is to work on projects and study things only when you need to; that’s something I’ve been doing, and it’s helped me a lot. I use Neovim, so I downloaded Rustup and got what I needed from there – obviously, I’m on Arch Linux. The important thing is to get started.