Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binary target to use "cargo install"? #5

Closed
IngwiePhoenix opened this issue Dec 5, 2021 · 2 comments
Closed

Add binary target to use "cargo install"? #5

IngwiePhoenix opened this issue Dec 5, 2021 · 2 comments

Comments

@IngwiePhoenix
Copy link

I often use https://time.is to convert timezones, getting this from the CLI would be neat!
However, when running cargo install when i get this:

error: there is nothing to install in `when v0.1.4`, 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.

Could you add a binary target to solve this? Thanks!

@mitsuhiko
Copy link
Owner

It can be installed from github as shown in the readme. I do not own the when package on crates.io and I haven't published it to crates yet.

@mitsuhiko
Copy link
Owner

Closing this as duplicate of #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants