Skip to content

joshrotenberg/hebcal-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hebcal-rs: hebcal.com client for Shabbat times

crates.io docs 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(())
}

About

No description or website provided.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE-2.0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages