Skip to main content

universal_time/
lib.rs

1#![deny(missing_docs)]
2#![cfg_attr(not(feature = "std"), no_std)]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4#![doc = include_str!("../README.md")]
5
6pub use core::time::Duration;
7
8#[cfg(any(
9    not(feature = "std"),
10    all(feature = "std", target_family = "wasm", target_os = "unknown")
11))]
12#[cfg_attr(
13    docsrs,
14    doc(cfg(any(
15        not(feature = "std"),
16        all(feature = "std", target_family = "wasm", target_os = "unknown")
17    )))
18)]
19mod global;
20mod instant;
21mod system;
22
23#[cfg(any(
24    not(feature = "std"),
25    all(feature = "std", target_family = "wasm", target_os = "unknown")
26))]
27#[cfg_attr(
28    docsrs,
29    doc(cfg(any(
30        not(feature = "std"),
31        all(feature = "std", target_family = "wasm", target_os = "unknown")
32    )))
33)]
34pub use self::global::*;
35pub use self::instant::*;
36pub use self::system::*;