Crates.io | autoupdater |
lib.rs | autoupdater |
version | 0.3.0 |
source | src |
created_at | 2022-08-02 15:18:48.651963 |
updated_at | 2023-03-15 22:32:48.199434 |
description | Crate for easy autoupdating of rust apps. |
homepage | https://github.com/localcc/autoupdater |
repository | https://github.com/localcc/autoupdater |
max_upload_size | |
id | 637409 |
size | 34,942 |
This crate was written to allow for easy rust application auto-updating.
To use this crate add it as a dependency to your Cargo.toml
autoupdater = "0.1.0"
To fetch and download an update you may do something like this
let mut api = autoupdater::apis::github::GithubApi::new("localcc", "somerepo");
api.current_version(cargo_crate_version!());
let download = api.get_newer(&None)?;
println!("{:?}", download);
if let Some(download) = download {
api.download(
&download.assets[0],
None
)?;
}
For more examples look in the examples directory.
rustls-tls
: Enables native rust TLS implementation for requests.