u/inthehackin r/rust • Recommends
On “CLI as separate package or feature?”
…u library.
with such a design, you can have features in both you library and you cli if needed. and one big point here is to make your library not depending on you cli but the opposite (see inversion of control and dependency injection, like in clean architecture).
finally, if you want to design a great cli, I can't encourage you more to look at link to this video…