kosinix / raster

An image processing library for Rust
https://docs.rs/raster/
MIT License
93 stars 14 forks source link

Can't use Enum raster::filter::Orientation due to crates.io index #20

Open korayeyinc opened 5 years ago

korayeyinc commented 5 years ago

Hi. I'm trying to use raster::filter::Orientation in main but when i try to build this code (taken from filter_tests.rs):

extern crate raster;

use raster::{filter, Orientation};

fn sobel_test() {
    let mut image = raster::open("input/sample.jpg").unwrap();
    filter::sobel(&mut image, Orientation::Both).unwrap();
    raster::save(&image, "output/filter_sobel.jpg").unwrap();
}

This is what i get:

    Updating crates.io index
error: failed to select a version for the requirement `raster = "^0.2.1"`                                                                                                                     
  candidate versions found which didn't match: 0.2.0, 0.1.0, 0.0.8, ...
  location searched: crates.io index
required by package `filter_sobel v0.1.0 ...

I'm using the latest raster version 0.2.1 to be able to use raster::filter::Orientation, yet crates.io index seems to refer to raster version 0.2.0. So, i assume the latest raster crate isn't published on crates.io yet ?

P.S. There is no Enum raster::filter::Orientation in raster version 0.2.0.

Thanks, Koray

francesca64 commented 5 years ago

Thanks for reporting this! Releases are supposed to be published automatically, so there's clearly something wrong with the travis config. I'll get a fix out soon.