Including Files and Deeply Directories in Rust

Including Files and Deeply Directories in Rust

One of the things that’s been criticized by newbies in Rust is the file include mechanism. About 2 days ago, I spent around 5 hours on how I was supposed to include a file that was referenced deep down in a directory tree. The docs didn’t help, as they were simple structures. Here I’ll show you how you can include your code in different parts of the application, even when the structure is complex, and save you hours on how to do this supposedly trivial task.