Skip to content

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

Description

@koraye80

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions