Welcome to the Rust Weather App, a simple command-line application that fetches and displays the current weather for any city using the OpenWeatherMap API. ☁️🌍
- 🔍 Fetch current weather information by city name.
- 🌡️ Display temperature, humidity, and weather conditions.
- 🌎 Easy to extend with more features, such as forecasts or additional data.
Make sure you have Rust installed on your machine. You can install Rust by running the following command:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Clone this repository to your local machine:
git clone https://github.com/chrohangurjar1/rust_weather_app.git
cd rust_weather_app
Open the Cargo.toml
file and ensure the following dependencies are included:
[dependencies]
reqwest = { version = "0.11", features = ["json"] }
tokio = { version = "1", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
- Sign up at OpenWeatherMap and create an API key. 🔑
- Replace
YOUR_API_KEY
insrc/main.rs
with your actual API key.
Build and run the application:
cargo run -- <CityName>
Replace <CityName>
with the name of the city you want to check the weather for, like London
or New York
. 🌆
cargo run -- London
We want to give a huge shoutout to everyone who has contributed to the project! 🙌 Your hard work and dedication help make this app better every day. 💪
🎉 Thank you all for your amazing contributions! Let's keep building together. 🚀
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, feel free to reach out!
Happy coding! 🎈