hebcal

Crates.iohebcal
lib.rshebcal
version0.1.0
sourcesrc
created_at2020-10-12 22:49:02.493618
updated_at2020-10-12 22:49:02.493618
descriptionA hebcal.com REST API Client
homepagehttps://github.com/joshrotenberg/hebcal-rs
repositoryhttps://github.com/joshrotenberg/hebcal-rs.git
max_upload_size
id298969
size57,612
josh rotenberg (joshrotenberg)

documentation

README

hebcal-rs: hebcal.com client for Shabbat times

Rust

hebcal-rs is a client library in Rust for requesting Shabbat times from the API at http://www.hebcal.com.

Cargo

hebcal = "0.1"

Example

use anyhow::Result;
use hebcal::{
    shabbat::Transliteration,
    HebCal,
};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let hebcal = HebCal::default();
    let shabbat = hebcal
        .shabbat()
        .transliteration(Transliteration::Ashkenazic)
        .zip("94706")
        .havdalah(20u16)
        .send()
        .await?;
    println!("{:#?}", shabbat);
    Ok(())
}
Commit count: 20

cargo fmt