Advent of Rust: Week 1 Recap

Week 1 of the Rust guide for node.js and JS/TS developers

Day 1: From nvm to rustup

Day 1 goes over how to get Rust and how to manage rust versions and its complementary tooling .

Day 2: From npm to cargo

Day 2 maps npm (and related) workflows to their cargo counterparts and introduces additional tools that help fill in the gaps.

Day 3: Setting up VS Code

Day 3 gets Visual Studio Code set up to perform code completion and to debug Rust. I also add some recommendations for additional plugins that help manage dependencies.

Day 4: “Hello, World” plus your first two WTFs

Day 4 gets into Rust code for the first time and then holds your hand through the first two hurdles that people get into.

Day 5: Ownership & Borrowing

Day 5 introduces Rust’s concept of ownership and touches on the borrow checker, Rust’s answer to memory safety without a garbage collector.

Day 6: Strings, Part 1

Day 6 walks you through the first hurdle introduced in Day 4. It seems basic, but the answer for how you get a real, genuine String is not as straightforward as you’d expect. This post clears it up.

Stay tuned for more!

The next several posts will go over some more of the first few hurdles and then we’ll dive into how to map JavaScript and TypeScript over to idiomatic Rust.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jarrod Overson

I write about JavaScript, Reverse Engineering, Security, and Credential Stuffing. Also a speaker, O'Reilly Author, creator of Plato, Director at Shape Security.