So I have a package which used to have one binary, but now I want to add a second binary. The file structure is
src
|- main.rs
|- extra.rs
\- bin
\- new_bin.rs
Both main and new_bin need to call functions in extra.rs. In main.rs I can say mod extra and use extra to import that module, but I can't figure out how to access extra from new_bin.rs. I tried mucking around with ::extra, crate::extra or super::extra but the compiler doesn't like any of those.