How to structure project with multiple binaries and libraries
I'm writing a somewhat complex project that includes two binaries and some modules that I use in both the binaries. The project structure looks something like this
[project structure]
src/
├── bin/
| ├── binary1.rs
| └── binary2.rs
├── my_mod1/
| ├── mod.rs
| └── other.rs
├── my_mod2.rs
├── my_mod3.rs
└── lib.rs
and the lib.rs file looks something like this
[src/lib.rs]
pub mod my_mod1;
pub mod my_mod2;
pub mod my_mod3;
The thing is, the module my_mod1 could be a library on its own, as it is somewhat big and doesn't relies on any other code written there. Is there some way to structure the project in a way that is basically "here are the binaries, here are some modules used by the binaries, and here are some utility libraries"?