Crates.io | yahoo-weather |
lib.rs | yahoo-weather |
version | 0.2.0 |
source | src |
created_at | 2018-08-31 14:25:08.068047 |
updated_at | 2018-08-31 14:25:08.068047 |
description | Easy yahoo weather API access for rust |
homepage | https://github.com/Roba1993/yahoo-weather-rs |
repository | https://github.com/Roba1993/yahoo-weather-rs |
max_upload_size | |
id | 82365 |
size | 8,591 |
The yahoo-weather-rs
create downloads the actual weather data for a given location and transforms it into rust data structures.
Add yahoo-weather-rs
as a dependency in Cargo.toml
:
[dependencies]
yahoo-weather = "0.2"
Use the get_weather()
function to get the weather data.
extern crate yahoo_weather;
fn main() {
// Request the data
let weather = yahoo_weather("Berlin").unwrap();
// print it to the console
println!("Weather: {:?}", weather);
}
Copyright © 2016 Robert Schütte
Distributed under the MIT License.