# Upgrade [![Crate](https://img.shields.io/crates/v/upgrade.svg)](https://crates.io/crates/upgrade) [![GitHub last commit](https://img.shields.io/github/last-commit/xuxiaocheng0201/upgrade)](https://github.com/xuxiaocheng0201/upgrade/commits/master) [![GitHub issues](https://img.shields.io/github/issues-raw/xuxiaocheng0201/upgrade)](https://github.com/xuxiaocheng0201/upgrade/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/xuxiaocheng0201/upgrade)](https://github.com/xuxiaocheng0201/upgrade/pulls) [![GitHub](https://img.shields.io/github/license/xuxiaocheng0201/upgrade)](https://github.com/xuxiaocheng0201/upgrade/blob/master/LICENSE) **Read this in other languages: [English](README.md), [简体中文](README_zh.md).** # Description A Rust crate to upgrade your program easily. (Based on [self-replace](https://crates.io/crates/self-replace).) # Usage Add this to your `Cargo.toml`: ```toml [dependencies] upgrade = "^2" ``` # Example ```rust,no_run use upgrade::upgrade; fn main() { upgrade("./upgrade.exe").unwrap(); } ``` Or call with args: ```rust,no_run use upgrade::run_upgrade; fn main() { run_upgrade("./upgrade.exe", true, ["--upgraded"]).unwrap(); } ```