use ib_update::github::UpdateConfig;
fn main() {
nyquest_preset::register();
println!("--- Blocking ---");
let info = UpdateConfig::builder()
.owner("rust-lang")
.repo("rust")
.current_version(env!("CARGO_PKG_VERSION"))
.build_blocking()
.check()
.expect("failed to check for updates");
println!("Latest: {}", info.latest().tag);
println!("Update available: {}", info.has_update());
}