upgrade 0.4.0

A helpful library for upgradeing your standalone executables.
Documentation

Upgrade

Crate GitHub last commit GitHub issues GitHub pull requests GitHub

Read this in other languages: English, 简体中文.

Description

A Rust crate to upgrade your program easily. (Based on self-replace.)

Usage

Add this to your Cargo.toml:

[dependencies]

upgrade = "~0.4"

Example

Using the Builder mode:

use upgrade::builder::Builder;

fn main() {
     Builder::create().unwrap()
         .source(&"./upgrade.exe")
         .upgrade().unwrap();
}

A shortcut:

use upgrade::upgrade;

fn main() {
    upgrade("./upgrade.exe").unwrap();
}