It all started with an informal chat with my friend Anthony. We were talking about languages, and I said that I preferred compiled ones. He then went

My first cup of Rust

submited by
Style Pass
2021-05-30 21:00:08

It all started with an informal chat with my friend Anthony. We were talking about languages, and I said that I preferred compiled ones. He then went on to mention Rust. We admitted that we were too afraid to learn it because of its perceived complexity.

There are tons of resources on the Web on how to learn Rust. This post is a memo of the steps I followed. It’s probably less structured than my other posts but I hope you might benefit from those notes anyway.

As a "modern" language, Rust provides a lot of different features beyond the syntax. Among them is the ability to create projects via the cargo command based on a template.

If you follow along, you might notice that a new Cargo.lock file has appeared after the first run. It plays the same role as Ruby’s Gemfile.lock and npm’s package-lock.json.

Now is the right time to inspect the source file. I believe that even if it’s the first time you see Rust code, you can infer what it does:

Leave a Comment