which contains a lib with minimal dependencies, and a bin under the same namespace which could be installed with cargo install, and with more deps like clap?
I found out that it’s somewhat possible with optional & feature flag, but then you would install with cargo install xxx ––features bin, which is not friendly.
cargo install outside a cargo project, on installs the bin executables in your global cargo bin directory. Simple cargo install should be enough.
Thanks. But how to you specify different dependencies for the bin directory then?
Обсуждают сегодня