toml_datetime/
lib.rs

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
15mod datetime;
16
17pub use crate::datetime::Date;
18pub use crate::datetime::Datetime;
19pub use crate::datetime::DatetimeParseError;
20pub use crate::datetime::Offset;
21pub use crate::datetime::Time;
22
23#[doc(hidden)]
24#[cfg(feature = "serde")]
25pub mod __unstable {
26    pub use crate::datetime::DatetimeFromString;
27    pub use crate::datetime::FIELD;
28    pub use crate::datetime::NAME;
29}