utah-rust / utah-rust.github.io

https://utah.rs
12 stars 3 forks source link

Effective/Idiomatic Module System Use #5

Open pinealservo opened 6 years ago

pinealservo commented 6 years ago

This is something that caught me by surprise as trickier than I thought it'd be. Some possible things to cover:

  1. Using mod vs directory structure + filenames to define modules
  2. When to mark something pub
  3. How crates, modules, enums, etc. show up in the namespace tree
  4. Re-exporting with pub use
  5. General guidelines on how/why to break some code into separate modules and crates
epage commented 6 years ago

And probably include a preview of Rust 2018