upgrade

Crates.ioupgrade
lib.rsupgrade
version2.0.0
sourcesrc
created_at2023-12-16 16:24:00.209172
updated_at2024-04-23 04:03:59.693543
descriptionA helpful library for upgradeing your standalone executables.
homepage
repositoryhttps://github.com/xuxiaocheng0201/upgrade/
max_upload_size
id1071840
size18,387
(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: 35

cargo fmt