reem/rust-typemap

Specified package has no binaries

Flaise opened this issue · 1 comments

When I try to install:

$ cargo install typemap
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading typemap v0.3.3
error: specified package has no binaries

Did I get the crates.io package name right? Is there something I'm doing wrong?

reem commented

cargo install is for installing packages that result in a binary - packages with a main function. typemap is a library, you use it by adding it to your Cargo.toml in the project you want to use it in.

See the crates.io getting started guide in particular the adding a dependency section.