jusw85 / mozlz4

Decompress / compress mozlz4 files, with precompiled binaries for Windows and Linux
MIT License
66 stars 7 forks source link

Enable Installation via `cargo install` #3

Open AlJohri opened 2 years ago

AlJohri commented 2 years ago

Would it be possible to enable installation of the binary via cargo install ...?

❯ cargo install mozlz4
    Updating crates.io index
  Downloaded mozlz4 v0.3.1
  Downloaded 1 crate (2.5 KB) in 0.90s
error: there is nothing to install in `mozlz4 v0.3.1`, 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.
jusw85 commented 2 years ago

mozlz4 in crates.io is a downstream fork, written as a library crate, that isn't maintained by me.

This project can be installed by running cargo install --path . in the project directory.