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
new_bin need to call functions in
main.rs I can say
mod extra and
use extra to import that module, but I can't figure out how to access
new_bin.rs. I tried mucking around with
super::extra but the compiler doesn't like any of those.