weather-app

Crates.ioweather-app
lib.rsweather-app
version0.2.4
created_at2025-03-20 15:52:55.529955+00
updated_at2025-03-22 16:30:00.884997+00
descriptionA simple CLI tool to fetch weather data, by default uses you ip location
homepage
repositoryhttps://github.com/Nkwenti-Severian-Ndongtsop/rust-server-projects
max_upload_size
id1599401
size50,591
@Nkwenti @Severian (Nkwenti-Severian-Ndongtsop)

documentation

README

🌦️ Weather CLI

A blazing-fast and simple command-line application to fetch and display weather information for a given city using Rust. This tool utilizes reqwest to fetch weather data from an API and serde for efficient JSON parsing.

✨ Features

  • 🚀 Fetches real-time weather data
  • 🔍 Supports command-line input for city search
  • 🌍 Displays temperature, weather conditions, and other relevant details

🛠️ Installation

Prerequisites

  • 🦀 Rust (latest stable version recommended)

▶️ Run the CLI

  • add this export PATH="$HOME/.cargo/bin:$PATH" to you shell configuration file e.g: ~/.zshrc ~/.bashrc
export PATH="$HOME/.cargo/bin:$PATH"
weather-app [CITY_NAME/COUNTRY]

Example:

weather-app tokyo

📦 Dependencies

  • 🌐 reqwest - for making HTTP requests

  • 📜 serde and serde_json - for parsing JSON data

🛡️ Error Handling

  • The CLI gracefully handles network errors and invalid city inputs.
  • If an error occurs, it provides a meaningful error message.

📜 License

This project is licensed under the MIT License.

🤝 Contribution

Feel free to fork the repository, create issues, or submit pull requests!


🌍 Stay informed with real-time weather updates from your terminal! 🚀


🚀 Also avaialable on crate.io with the name weather-app

Commit count: 132

cargo fmt