Getting to know the Ecosystem πŸ—ΊοΈ

April 27, 2021

  2 minutes

Rust 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).

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

Last not the least.

The editor

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.


comments powered by Disqus