Tiny update notifier utility for rust cli programs
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 📢
Install tinyupdatenotifier using Cargo
bash
cd my-project
cargo add tiny_update_notifier
rust
tiny_updater_notifier::Notifier::new().run(pkg_version, pkg_name, pkg_repo_url)
```rust,norun use tinyupdater_notifier::Notifier;
fn main() -> std::io::Result<()> { Notifier::new( env!("CARGOPKGVERSION"), env!("CARGOPKGNAME"), env!("CARGOPKGREPOSITORY"), ) .run();
Ok(())
} ```