| 1 | //! A [TOML]-compatible datetime type |
| 2 | //! |
| 3 | //! [TOML]: https://github.com/toml-lang/toml |
| 4 | |
| 5 | #![cfg_attr (docsrs, feature(doc_auto_cfg))] |
| 6 | #![warn (missing_docs)] |
| 7 | // Makes rustc abort compilation if there are any unsafe blocks in the crate. |
| 8 | // Presence of this annotation is picked up by tools such as cargo-geiger |
| 9 | // and lets them ensure that there is indeed no unsafe code as opposed to |
| 10 | // something they couldn't detect (e.g. unsafe added via macro expansion, etc). |
| 11 | #![forbid (unsafe_code)] |
| 12 | #![warn (clippy::print_stderr)] |
| 13 | #![warn (clippy::print_stdout)] |
| 14 | |
| 15 | mod datetime; |
| 16 | |
| 17 | pub use crate::datetime::Date; |
| 18 | pub use crate::datetime::Datetime; |
| 19 | pub use crate::datetime::DatetimeParseError; |
| 20 | pub use crate::datetime::Offset; |
| 21 | pub use crate::datetime::Time; |
| 22 | |
| 23 | #[doc (hidden)] |
| 24 | #[cfg (feature = "serde" )] |
| 25 | pub mod __unstable { |
| 26 | pub use crate::datetime::DatetimeFromString; |
| 27 | pub use crate::datetime::FIELD; |
| 28 | pub use crate::datetime::NAME; |
| 29 | } |
| 30 | |