tiny_update_notifier 1.0.1

Tiny update notifier utility for rust cli programs
Documentation

Checks for update on program launch if more than 24h have passed since the last check, then pops up a notification if a new version was found 📢

App Screenshot

Installation

Install tiny_update_notifier using Cargo

  cd my-project
  cargo add tiny_update_notifier

Usage

tiny_updater_notifier::Notifier::new().run(pkg_version, pkg_name, pkg_repo_url)

Example

use tiny_updater_notifier::Notifier;

fn main() -> std::io::Result<()> {
        Notifier::new(
        env!("CARGO_PKG_VERSION"),
        env!("CARGO_PKG_NAME"),
        env!("CARGO_PKG_REPOSITORY"),
    )
    .run();

    Ok(())
}

Used by https://github.com/Araxeus/ls-interactive/