toml_datetime/
lib.rs

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