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