| Crates.io | hebcal |
| lib.rs | hebcal |
| version | 0.1.0 |
| created_at | 2020-10-12 22:49:02.493618+00 |
| updated_at | 2020-10-12 22:49:02.493618+00 |
| description | A hebcal.com REST API Client |
| homepage | https://github.com/joshrotenberg/hebcal-rs |
| repository | https://github.com/joshrotenberg/hebcal-rs.git |
| max_upload_size | |
| id | 298969 |
| size | 57,612 |
hebcal-rs is a client library in Rust for requesting Shabbat times from the API at http://www.hebcal.com.
hebcal = "0.1"
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(())
}