Holochain Forum

Beginner Rust Resources

Holochain’s first officially supported HDK (Holochain Development Kit) is written for the Rust language. That means that the core data components of your app will also need to be written in Rust. Our devs have grown to love Rust for the safety guarantees it offers, but we won’t deny that it’s an unusual language. Keep in mind that only a small fraction of your app needs to live in Holochain — the components where data integrity and security are most critical.

Here are some introductory Rust resources we’ve collected:

  • A Gentle Introduction To Rust — Read this first. It’ll tell you all the things you’ll wished you’d known before you started reading the other stuff.
  • The Rust Book — The official Rust documentation. More than just a dry reference guide, this is a well-written book that regularly draws compliments for its accessibility and usefulness.
  • Rust By Example — If you’re like me, you learn by doing. This guide takes you through a few tutorials to help you understand how Rust is used in practice.

Please contribute your own favorite Rust learning resources below, or edit this post (it’s a wiki).

8 Likes

if one is just learning to code now, and is very intrigued by the holochain project (let’s say a young high school student)

would learning rust first be advisable? what path would you recommend? learning other programming languages first?

If you’ve just come to the programming world, I might even recommend starting with Rust… Rust is very different from other languages, and there’d be fewer things to unlearn/relearn. That said, I don’t know if there are any really good Rust tutorials for those who are new to programming. Any ideas, folks?

I personally went through rustlings, a nice resource to get acquainted with Rust syntax.

For people who enjoy learning with videos, Brooks Patton created a 72-vids-playlist where he goes through the whole Rust Book mentioned above.

If you go over to the Rust community, they have a Discord server with a dedicated channel for beginner-level questions only.

1 Like