This Rust project downloads an image from the web and saves it to a temporary directory.
## Features
Downloads an image from a specified URL.
Saves the image to a temporary directory.
Handles errors using the `error-chain` crate.
## Dependencies
This project uses the following dependencies:
[`tokio`](https://crates.io/crates/tokio): For asynchronous runtime.
[`reqwest`](https://crates.io/crates/reqwest): For making HTTP requests.
[`error-chain`](https://crates.io/crates/error-chain): For error handling.
[`tempfile`](https://crates.io/crates/tempfile): For creating temporary files and directories.
[`dirs`](https://crates.io/crates/dirs): For accessing system directories.
## Installation
- Ensure you have Rust installed.
- Clone this repository:
git clone https://github.com/yourusername/download-image.git
- Navigate to the project directory:
- Build the project:
Run the project with the following command: