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

Cannot install from cargo #2

Closed
okaneco opened this issue Nov 16, 2020 · 2 comments · Fixed by #3
Closed

Cannot install from cargo #2

okaneco opened this issue Nov 16, 2020 · 2 comments · Fixed by #3

Comments

@okaneco
Copy link
Owner

okaneco commented Nov 16, 2020

Upstream changes in image cause the crate to fail to build when installing from crates.io.

See
okaneco/kmeans-colors#35
okaneco/kmeans-colors#36

What happens

error[E0433]: failed to resolve: could not find `CompressionType` in `png`
  --> C:\Users\user\.cargo\registry\src\github.com-1ecc6299db9ec823\rscolorq-0.1.0\src\bin\rscolorq\utils.rs:76:21
   |
76 |         image::png::CompressionType::Best,
   |                     ^^^^^^^^^^^^^^^ could not find `CompressionType` in `png`

error[E0433]: failed to resolve: could not find `FilterType` in `png`
  --> C:\Users\user\.cargo\registry\src\github.com-1ecc6299db9ec823\rscolorq-0.1.0\src\bin\rscolorq\utils.rs:77:21
   |
77 |         image::png::FilterType::NoFilter,
   |                     ^^^^^^^^^^ could not find `FilterType` in `png`

error: aborting due to 2 previous errors

How to fix it

The image dependency should be bumped along with the lines of code that don't work. A new version of the crate should be published.

@okaneco
Copy link
Owner Author

okaneco commented Nov 16, 2020

Able to successfully install using cargo

   Compiling rscolorq v0.1.1
    Finished release [optimized] target(s) in 1m 04s
  Installing C:\Users\user\.cargo\bin\rscolorq.exe
   Installed package `rscolorq v0.1.1` (executable `rscolorq.exe`)

@sergeevabc
Copy link

Dear @okaneco,
Could you be so kind to generate .exe for the rest of us who are mere Windows users w/o compiler?

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

Successfully merging a pull request may close this issue.

2 participants