Crates.io | upgrade |
lib.rs | upgrade |
version | 2.0.0 |
source | src |
created_at | 2023-12-16 16:24:00.209172 |
updated_at | 2024-04-23 04:03:59.693543 |
description | A helpful library for upgradeing your standalone executables. |
homepage | |
repository | https://github.com/xuxiaocheng0201/upgrade/ |
max_upload_size | |
id | 1071840 |
size | 18,387 |
Read this in other languages: English, 简体中文.
A Rust crate to upgrade your program easily. (Based on self-replace.)
Add this to your Cargo.toml
:
[dependencies]
upgrade = "^2"
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();
}