Reputation: 41
I wanted to use qoi in my rust project and tried this module, https://github.com/ChevyRay/qoi_rs
The problem is that, when I write this:
use qoi::Pixel;
The error :
error[E0432]: unresolved import `qoi::Pixel`
--> src/create_images.rs:4:5
|
4 | use qoi::Pixel;
| ^^^^^-----
| | |
| | help: a similar name exists in the module: `pixel`
| no `Pixel` in the root
For more information about this error, try `rustc --explain E0432`.
error: could not compile `Thing_in_rust` due to previous error
so I tried pixel
:
use qoi::pixel;
And this error message pops up
error[E0603]: module `pixel` is private
--> src/create_images.rs:4:10
|
4 | use qoi::pixel;
| ^^^^^ private module
|
I am new to rust, but looking at the github code https://github.com/ChevyRay/qoi_rs/blob/main/src/pixel.rs
gave me the impression that it is public.
cargo.toml :
[dependencies]
qoi = "0.4.0"
Upvotes: 0
Views: 1549
Reputation: 42592
The crate you've linked to doesn't seem to be published on crates.io, although there's a multitude of qoi crates over there.
So your options are either:
Upvotes: 1