Open fade2black opened 3 years ago
Do you mean cargo new
, right?
We could cover the use of mod.rs
, because if I remember correctly the rust book doesn't cover that
@MarcoIeni Yeah, right,cargo
, fixed. 😊
Good post about it: https://www.sheshbabu.com/posts/rust-module-system/
Should this be an idiom?
We could also include a example using cargo generate
cargo new
already creates a structured project (folders, etc...). Wouldn't be it nice to create a section/page/idioms/ devoted to best practices of code organisation? For example how to struct modules, crates, workspaces...how to refer one crate from another or one module from another. What do you think?