Clear explanation of Rust’s module system

This blog post helped me clear my understanding of how Rust’s module system works. This is required reading to all beginners.

Rust’s module system is surprisingly confusing and causes a lot of frustration for beginners.

In this post, I’ll explain the module system using practical examples so you get a clear understanding of how it works and can immediately start applying this in your projects.

Since Rust’s module system is quite unique, I request the reader to read this post with an open mind and resist comparing it with how modules work in other languages.

Sheshbabu Chinnakonda

Link to post

Published
Categorized as Default

By Giovanni Collazo

Software developer, user experience designer, and web application security enthusiast from San Juan, Puerto Rico. You can find me on Twitter as @gcollazo.

Leave a comment

Your email address will not be published. Required fields are marked *