php_dates/lib.rs
1//! PHP date patterns and the shared PHP/Day.js date format contract of
2//! [`reynotech/laravel-query-builder-custom`](https://github.com/reynotech/laravel-query-builder-custom).
3//!
4//! The crate has no framework or database dependency: it formats and parses with
5//! [`PhpDatePattern`], resolves which pattern applies with [`formats::format`] and exports the contract to a
6//! Day.js frontend with [`formats::frontend_config`].
7
8mod config;
9mod error;
10pub mod formats;
11mod php_date;
12
13pub use config::{DateConfig, DatePatterns};
14pub use error::{Error, Result};
15pub use formats::{Kind, Purpose};
16pub use php_date::PhpDatePattern;