tiny-update-check 1.1.1

A minimal, lightweight crate update checker for Rust CLI applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Minimal binary for measuring size impact.
//!
//! Build with: `cargo build --release --example size_check`
//! Check size: `ls -lh target/release/examples/size_check`

fn main() {
    match tiny_update_check::check("serde", "1.0.0") {
        Ok(Some(update)) => {
            eprintln!("Update available: {} -> {}", update.current, update.latest);
        }
        Ok(None) => eprintln!("Up to date"),
        Err(e) => eprintln!("Check failed: {e}"),
    }
}