1 unstable release
0.1.0 | Mar 18, 2024 |
---|
#613 in Build Utils
14KB
60 lines
🚀 Auto Downloader 🚀
Hey there, fellow Rustacean! 👋 Welcome to auto_downloader
, the coolest Rust project for automatically updating your app with zero hassle. Whether you're looking to keep your application up-to-date without lifting a finger or just dabbling in Rust, you've come to the right place!
What's This Project All About? 🤔
In the digital world, staying updated is the name of the game. That's why auto_downloader
is here to save the day! It checks for updates, downloads the new version, and gets your app running the latest and greatest version in no time. It's like having a little robot 🤖 inside your computer, making sure you're always at the cutting edge.
Getting Started 🚀
Prerequisites
- Rust installed on your machine (duh! 😜). If you don't have it yet, visit the official Rust website to get set up!
Installation
add this to your Cargo.toml
file:
[dependencies]
auto_downloader = "0.1.0"
Voilà! You're now running auto_downloader
. Watch it work its magic! ✨
Features 🌟
- Automatic Updates: Checks for updates and downloads them without you having to move a muscle.
- Secure: Verifies download integrity to keep the nasties away. 🛡️
- Cross-Platform Goodness: Works on all your favorite platforms. 🖥️ 🍏 🪟
How to Use 🛠️
Honestly? Just let it do its thing! auto_downloader
works in the background, ensuring your application is always up to date. For those who like to tinker, dive into the src
folder to see how the magic happens. Who knows, you might find some cool ideas for your next Rust project!
Contributing 🤝
Want to contribute? Awesome! Feel free to fork the repo, make your changes, and submit a pull request. All ideas and contributions are welcome. Let's make auto_downloader
even better together!
License 📜
This project is proudly licensed under the MIT License. See the LICENSE file for details.
Final Words 📢
Thanks for checking out auto_downloader
! If you like what you see, give it a star ⭐, and share it with your friends. Happy coding, and may your applications always be up-to-date!
Example
{
"version": "1.0.1",
"download_url": "https://example.com/your_application_1.0.1.exe",
"sha256_checksum": "d73d56b328d5a8ffdf27430edb4d9d68e1e2a8f2c3e2656c672e4f6b76153a2b",
"app_name": "your_application.exe"
}
Code
use auto_downloader::update_application;
fn main() {
let current_version: &str = "1.0.0";
let info_url: &str = "https://example.com/version_info";
let respone:Result<_, _> =update_application(current_version, info_url);
match respone {
Ok(()) => println!("Application updated successfully."),
Err(e) => println!("Error updating application: {}", e),
}
}
Authors
👤 Bader alotaibi @ baderalotaibi3@gmail.com
Show your support
Give a ⭐️ if you like this project!
Dependencies
~7–23MB
~273K SLoC