rust_zmanim/lib.rs
1// This library is free software; you can redistribute it and/or
2// modify it under the terms of the GNU Lesser General Public
3// License as published by the Free Software Foundation; either
4// version 2.1 of the License, or (at your option) any later version.
5//
6// This library is distributed in the hope that it will be useful,
7// but WITHOUT ANY WARRANTY; without even the implied warranty of
8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9// Lesser General Public License for more details.
10//
11// You should have received a copy of the GNU Lesser General Public
12// License along with this library; if not, see:
13// <https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html>
14
15#![doc = include_str!("../README.md")]
16
17pub mod astronomical_calculator;
18pub mod complex_zmanim_calendar;
19pub mod util;
20pub mod zmanim_calculator;
21
22/// A convenience module for glob imports. `use rust_zmanim::prelude::*;`
23pub mod prelude {
24 pub use chrono::TimeZone; // So `Tz.with_ymd_and_hms()` will work
25
26 pub use crate::astronomical_calculator;
27 pub use crate::zmanim_calculator;
28
29 pub use crate::complex_zmanim_calendar::*;
30 pub use crate::util::geolocation::GeoLocation;
31 pub use zmanim_calculator::ZmanOffset;
32}