mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-11-16 19:50:44 +01:00
Add cargo-modules
. Closes #101
This commit is contained in:
parent
2f067058ce
commit
3f4d31148f
1 changed files with 7 additions and 0 deletions
|
@ -112,3 +112,10 @@ where each name comes from and potentially introducing name conflicts.\
|
|||
Nonetheless, it can be useful in some cases, like when writing unit tests. You might have noticed
|
||||
that most of our test modules start with a `use super::*;` statement to bring all the items from the parent module
|
||||
(the one being tested) into scope.
|
||||
|
||||
## Visualizing the module tree
|
||||
|
||||
If you're struggling to picture the module tree of your project, you can try using
|
||||
[`cargo-modules`](https://crates.io/crates/cargo-modules) to visualize it!
|
||||
|
||||
Refer to their documentation for installation instructions and usage examples.
|
Loading…
Reference in a new issue