Skip to main content

Crate kosher_rust

Crate kosher_rust 

Source
Expand description

Rust port of KosherJava for Jewish holidays, halachic times (zmanim), and Torah/Talmud learning schedules (e.g. Daf Yomi, Pirkei Avos). A no_std crate (optional alloc) for Hebrew calendar extensions, location-based zmanim, and limudim calculators.

§Modules

ModulePurpose
calendarHebrew dates, holidays, parshiyot, month constants, and calendar traits
zmanimSunrise, candle lighting, alos, tzeis, and other halachic times
limudimDaf Yomi, Mishna Yomis, Tehillim, Pirkei Avos, and related daily units

Each module has its own calendar::prelude, zmanim::prelude, or limudim::prelude. Use prelude at the crate root when an application needs more than one area.

See each module’s documentation for focused examples: calendar for holidays and parsha, zmanim for location-based times, limudim for learning schedules.

§Features

FeatureDefaultEffect
allocyesZman preset descriptions; without it the crate stays no_std and calculation APIs are unchanged
defmtnodefmt::Format on calculator, config, location, and error types

Disable default features in Cargo.toml when targeting embedded platforms that cannot use the allocator:

Modules§

calendar
Hebrew calendar extensions built on ICU4X.
limudim
Daily Torah and Talmud learning schedules (limudim).
prelude
Common imports across calendar, zmanim, and limudim.
zmanim
Halachic time calculations (zmanim) for a geographic location and civil date.

Macros§

for_all_zman_presets
Invokes $callback!(PRESET_IDENT) once per generated preset static.