openweather_rs 0.1.0

A Rust crate for interacting with data from OpenWeather's API.
Documentation

openweather-rs

This crate will retrieve the current weather from openweathermap.org and return the data as the OpenWeather type.

Usage

extern crate openweather_rs;
use openweather_rs::get_weather;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    get_weather("API_KEY".to_string(), "24504".to_string()).await?;
    Ok(())
}