A Sneak Peek into Rust Module System
Rust’s module system and the terminologies are unique to other programming languages. Understanding Rust’s module system takes a lot of reading and sometimes we are in a hurry to use the features right away. In this post, I will give you real-world examples of Rust’s module system. However, I still recommend reading the official Rust book whenever you are free.
Theory
Understanding Rust’s module system requires the knowledge of crate
, modules
and path
.