[](https://travis-ci.com/kurtlawrence/cratesiover)
[](https://crates.io/crates/cratesiover)
[](https://docs.rs/cratesiover)
[](https://codecov.io/gh/kurtlawrence/cratesiover)
Query and compare the semver of a crate on crates.io.
See the [rs docs](https://docs.rs/cratesiover/). [Github repo.](https://github.com/kurtlawrence/cratesiover)
# Example
```rust
use cratesiover::Status;
let query = cratesiover::query("cratesiover", &env!("CARGO_PKG_VERSION")).unwrap();
match query {
Status::Behind(ver) => println!("crate is behind the version on crates.io {}", ver),
Status::Equal(ver) => println!("crate is equal to the version on crates.io {}", ver),
Status::Ahead(ver) => println!("crate is ahead of the version on crates.io {}", ver),
}
```