Getting to know the Ecosystem πΊοΈ
April 27, 2021
2 minutesRust comes from a family of system programming languages. The simple answer to WHY RUST?, can be could be perhaps summarized with the following key points:
- Get C/C++ level of performance or even better (Depends on how you write code).
- No garbage collectior to slow down your application.
- Write fearlessly. The compiler is your friend ensuring meaningful error messages.
- The compiler design itself prevents Memory safety (No race conditions) via Type System and Ownership Model.(You must have probably heard of it, provided you googled
rust
at least once. Stay Calm!, we will go through it together).
- The compiler design itself prevents Memory safety (No race conditions) via Type System and Ownership Model.(You must have probably heard of it, provided you googled
Convinced π ?
Why wait any further? Let’s directly dive into the ecosystem.
The ecosystem:
Rustup π±οΈ
- Install and manage Rust via Rustup.
Cargo π±οΈ
- Comes with rust installation (A command line tool that does everything for you).
- Use it to
manage dependencies
,run code/tests
,generate documentation
and many more.
Crates.io π±οΈ
- The collection of all public dependencies(binaries/libraries) you are gonna need. We call them
crates
here by the way π.
Docs.rs π±οΈ
- Documentation bank for all libraries/binaries published to crates.io.
The Community
- Rust-reddit π Place where you are gonna find many Rustaceans like you.
- Learn-Rust-reddit π Place for finding people learning rust from the start.
- Awesome Mentors π Find awesome rust mentors. Don’t forget to follow their work.
- Find rust on Github. π±οΈ
Last not the least.
The editor
- I prefer VS Code. (You are free to use whatever).
- Must have extension rust-analyzer.
Let’s write a Hello World program and commence our journey together. (First set up rust on your system.)
$ cargo new rust_journey
$ cd rust_journey
$ cargo run
That’s it!. Congratulations on writing your first rust program. Easy, Isn’t it π?
This is only the beginning of a long, long journey, my friend.
Stay tuned.