self_update
provides updaters for updating rust executables in-place from various release
distribution backends.
Currently only GitHub releases are supported.
shell
self_update = "0.1"
Update (replace) the current executable with the latest release downloaded
from https://api.github.com/repos/jaemk/self_update/releases/latest
```rust,ignore
fn update() -> Result<(), Box<::std::error::Error>> { let target = selfupdate::gettarget()?; selfupdate::backends::github::Updater::configure()? .repoowner("jaemk") .reponame("selfupdate") .target(&target) .binname("selfupdateexample") .showprogress(true) .currentversion(crateversion!()) .build()? .update()?; } ```rust
License: MIT