You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo install magic-wormhole Updating crates.io indexerror: there is nothing to install in `magic-wormhole v0.6.0`, because it has no binaries`cargo install` is only for installing programs, and can't be used with libraries.To use a library crate, add it as a dependency in a Cargo project instead.
On the first level, the error message is right. magic-wormhole is a library and a library only. The CLI is a separate crate (although in the same repository in a shared workspace) and not currently published on crates.io. As far as I know cargo install magic-wormhole would require to make the CLI as binary of the same crate as the library, as opposed to two distinct ones. But I'm not sure about that.
Even when talking about publishing the CLI under a different name, there is still the restriction of having to use only crates.io dependencies in order to publish on crates.io. I am obviously forced to follow it for the library, but for the binary I had to use git dependencies several times in the past.
clonejo
changed the title
Bug: cli not installable using cargo-install
Feature Request: cli installable using cargo-install
Dec 23, 2022
Fails both with 0.5.0 and 0.6.0.
Might be related to rust-lang/cargo#4101.
One workaround is to download the source and run
cargo install --path=cli
.The text was updated successfully, but these errors were encountered: