time_tools/
lib.rs

1#![ cfg_attr( feature = "no_std", no_std ) ]
2#![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ]
3#![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico" ) ]
4#![ doc( html_root_url = "https://docs.rs/time_tools/latest/time_tools/" ) ]
5// #![ deny( rust_2018_idioms ) ]
6// #![ deny( missing_debug_implementations ) ]
7// #![ deny( missing_docs ) ]
8
9//!
10//! Collection of time tools.
11//!
12
13#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ]
14
15/// Operates over current time.
16#[ cfg( feature = "time_now" ) ]
17#[ path = "./now.rs" ]
18#[ cfg( feature = "enabled" ) ]
19pub mod now;
20
21/// Dependencies.
22#[ cfg( feature = "enabled" ) ]
23pub mod dependency
24{
25}
26
27/// Protected namespace of the module.
28#[ cfg( feature = "enabled" ) ]
29pub mod protected
30{
31  #[ doc( inline ) ]
32  #[ allow( unused_imports ) ]
33  pub use super::orphan::*;
34}
35
36#[ doc( inline ) ]
37#[ allow( unused_imports ) ]
38#[ cfg( feature = "enabled" ) ]
39pub use protected::*;
40
41/// Shared with parent namespace of the module
42#[ cfg( feature = "enabled" ) ]
43pub mod orphan
44{
45  #[ doc( inline ) ]
46  #[ allow( unused_imports ) ]
47  pub use super::exposed::*;
48}
49
50/// Exposed namespace of the module.
51#[ cfg( feature = "enabled" ) ]
52pub mod exposed
53{
54  #[ doc( inline ) ]
55  #[ allow( unused_imports ) ]
56  pub use super::prelude::*;
57  #[ cfg( feature = "time_now" ) ]
58  #[ doc( inline ) ]
59  #[ allow( unused_imports ) ]
60  pub use super::now::*;
61}
62
63/// Prelude to use essentials: `use my_module::prelude::*`.
64#[ cfg( feature = "enabled" ) ]
65pub mod prelude
66{
67}