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
243 downloads per month
Used in bestool
7KB
Upgrade
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