ib-update 0.1.0

A lightweight library for software update
Documentation
use ib_update::github::UpdateConfig;

fn main() {
    nyquest_preset::register();

    // Async API
    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());
    });
}