8 releases (5 stable)
new 2.0.1 | Feb 16, 2025 |
---|---|
2.0.0 | Apr 23, 2024 |
1.1.1 | Jan 13, 2024 |
0.4.0 | Dec 21, 2023 |
0.1.0 | Dec 16, 2023 |
#841 in Development tools
408 downloads per month
Used in bestool
9KB
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
~131K SLoC