self_update 0.2.2

Self updates for standalone executables


Build Status docs

self_update provides updaters for updating rust executables in-place from various release distribution backends.

Currently only GitHub releases are supported.

self_update = "0.2"


Update (replace) the current executable with the latest release downloaded from

#[macro_use] extern crate self_update;

fn update() -> Result<(), Box<::std::error::Error>> {
    let target = self_update::get_target()?;
    let status = self_update::backends::github::Updater::configure()?
    println!("Update status: `v{}`!", status.version());

Run the above example to see self_update in action: cargo run --example github

License: MIT