How can I include a module from another file from the same project?
By following this guide I created a Cargo project. src/main.rs fn main() { hello::print_hello(); } mod hello { pub fn print_hello() { println!("Hello, world!"); } } which I run using cargo build && cargo run and it compiles without errors.
https://stackoverflow.com/questions/26388861/how-can-i-include-a-module-from-another-file-from-the-same-project