Let's see how we can organize the code, when the codebase is getting larger.
01. Functions
fn main() {
greet();
}
fn greet() {
println!("Hello, world!");
}
02. Modules - In the same file
fn main() {
greet::hello();
}
mod greet {
// By default, everything inside a...