upgrade

Crates.ioupgrade
lib.rsupgrade
version2.0.1
created_at2023-12-16 16:24:00.209172+00
updated_at2025-02-16 07:07:49.040545+00
descriptionA helpful library for upgradeing your standalone executables.
homepage
repositoryhttps://github.com/xuxiaocheng0201/upgrade/
max_upload_size
id1071840
size23,508
XuXiaoCheng (xuxiaocheng0201)

documentation

https://docs.rs/upgrade/

README

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();
}
Commit count: 39

cargo fmt