huacnlee / autocorrect

A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuations between CJK (Chinese, Japanese, Korean).
https://huacnlee.github.io/autocorrect
MIT License
918 stars 34 forks source link

failed to install by command "cargo install autocorrect" #175

Closed sangshuduo closed 11 months ago

sangshuduo commented 1 year ago

error: there is nothing to install in autocorrect v2.8.5, 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 to a Cargo project with cargo add.

huacnlee commented 1 year ago

See https://github.com/huacnlee/autocorrect?tab=readme-ov-file#installation

The autocorrect crate is a lib, not a bin.

huacnlee commented 1 year ago

I will try to merge autocorrect and autocorrect-cli, maybe they are can merge into one by use Rust feature.

sangshuduo commented 1 year ago

I will try to merge autocorrect and autocorrect-cli, maybe they are can merge into one by use Rust feature.

how about the way typos does? https://github.com/crate-ci/typos#install

huacnlee commented 11 months ago

I am going to close this, I don't want to merge them.

Because of like this:

https://github.com/longbridgeapp/rust-i18n/pull/66