7 releases (4 stable)

2.0.0 Apr 23, 2024
1.1.1 Jan 13, 2024
0.4.0 Dec 21, 2023
0.3.2 Dec 20, 2023
0.1.0 Dec 16, 2023

#645 in Development tools

Download history 193/week @ 2024-07-27 70/week @ 2024-08-03 114/week @ 2024-08-10 135/week @ 2024-08-17 104/week @ 2024-08-24 6/week @ 2024-08-31 31/week @ 2024-09-07 6/week @ 2024-09-14 50/week @ 2024-09-21 25/week @ 2024-09-28 61/week @ 2024-10-05 28/week @ 2024-10-12 147/week @ 2024-10-19 33/week @ 2024-10-26 45/week @ 2024-11-02 18/week @ 2024-11-09

243 downloads per month
Used in bestool

MIT/Apache

7KB

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 = "^2"

Example

use upgrade::upgrade;

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

Or call with args:

use upgrade::run_upgrade;

fn main() {
    run_upgrade("./upgrade.exe", true, ["--upgraded"]).unwrap();
}

Dependencies

~2–11MB
~150K SLoC