No, thereβs no such thing in Cargo. Starting with Cargo 0.6.0, there is a cargo install subcommand that will install the box into the system.
It looks like you could create a new cargo subcommand called cargo add-dependency , though! You can then publish it to make it available to others.
In fact, it looks like existing, edit the product , can do what you want.
These cargo subcommands can be installed on cargo install in a fun meta circle!
source share