1 //! A [TOML]-compatible datetime type
2 //!
3 //! [TOML]: https://github.com/toml-lang/toml
4 
5 #![deny(missing_docs)]
6 #![warn(rust_2018_idioms)]
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 #![cfg_attr(docsrs, feature(doc_auto_cfg))]
13 
14 mod datetime;
15 
16 pub use crate::datetime::Date;
17 pub use crate::datetime::Datetime;
18 pub use crate::datetime::DatetimeParseError;
19 pub use crate::datetime::Offset;
20 pub use crate::datetime::Time;
21 
22 #[doc(hidden)]
23 #[cfg(feature = "serde")]
24 pub mod __unstable {
25     pub use crate::datetime::DatetimeFromString;
26     pub use crate::datetime::FIELD;
27     pub use crate::datetime::NAME;
28 }
29