republican_calendar/
lib.rs

1//! A Republican Calendar library for Rust.
2//!
3//! This library provides functionality to work with the French Republican Calendar,
4//! including date representation, conversion between Gregorian and Republican dates,
5//! and support for different leap year systems.
6//!
7//! # Examples
8//!
9//! ```
10//! use republican_calendar::date::Date;
11//!
12//! let rd = Date::try_from_ymd(2, 1, 1).unwrap(); // 1 Vendémiaire, Year 2
13//! let gd = rd.to_gregorian(); // Corresponding Gregorian date
14//! assert_eq!(gd, chrono::NaiveDate::from_ymd_opt(1793, 9, 22).unwrap());
15//! ```
16#![no_std]
17
18/// Date types and utilities for the dates in the Republican Calendar.
19pub mod date;