woptions/
lib.rs

1#![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ]
2#![ warn( rust_2018_idioms ) ]
3#![ warn( missing_debug_implementations ) ]
4#![ warn( missing_docs ) ]
5
6//!
7//! Mechanism to define map of options for a function and its defaults laconically.
8//!
9
10#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/Readme.md" ) ) ]
11
12/// Namespace with dependencies.
13pub mod dependency
14{
15  // #[ cfg( any( feature = "runtime", feature = "woptions_runtime" ) ) ]
16  pub use ::woptions_runtime as runtime;
17  // #[ cfg( any( feature = "meta", feature = "woptions_meta" ) ) ]
18  pub use ::woptions_meta as meta;
19}
20
21/// Own namespace of the module.
22pub mod protected
23{
24  pub use super::orphan::*;
25}
26
27#[ doc( inline ) ]
28pub use protected::*;
29
30/// Parented namespace of the module.
31pub mod orphan
32{
33  pub use super::exposed::*;
34}
35
36/// Exposed namespace of the module.
37pub mod exposed
38{
39  pub use super::prelude::*;
40  // #[ cfg( any( feature = "runtime", feature = "woptions_runtime" ) ) ]
41  pub use woptions_runtime as runtime;
42  // #[ cfg( any( feature = "meta", feature = "woptions_meta" ) ) ]
43  pub use woptions_meta as meta;
44  // #[ cfg( any( feature = "meta", feature = "woptions_meta" ) ) ]
45  pub use meta::Options;
46  // #[ cfg( feature = "former" ) ]
47  pub use former::derive::Former;
48  // #[ cfg( any( feature = "runtime", feature = "woptions_runtime" ) ) ]
49  pub use woptions_runtime::exposed::*;
50}
51
52/// Prelude to use essentials: `use my_module::prelude::*`.
53pub mod prelude
54{
55  // #[ cfg( any( feature = "runtime", feature = "woptions_runtime" ) ) ]
56  pub use woptions_runtime::prelude::*;
57}