[−][src]Crate cratesiover
Query and compare the semver of a crate on crates.io.
See the rs docs. Github repo.
Example
use cratesiover::Status; let query = cratesiover::query("cratesiover", &env!("CARGO_PKG_VERSION")).unwrap(); match query { Status::Behind => println!("crate is behind the version on crates.io"), Status::Equal => println!("crate is equal to the version on crates.io"), Status::Ahead => println!("crate is ahead of the version on crates.io"), }
Enums
Error | Errors in requesting or parsing the query. |
Status | The comparitive status of the version query. |
Functions
get | Get the |
query | Gets the |