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(
4 html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico"
5) ]
6#![ doc( html_root_url = "https://docs.rs/error_tools/latest/error_tools/" ) ]
7#![ cfg_attr( doc, doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "readme.md" ) ) ) ]
8#![ cfg_attr( not( doc ), doc = "Error handling tools and utilities for Rust" ) ]
9#![ allow( clippy::mod_module_files ) ]
10
11#[ cfg( feature = "enabled" ) ]
13pub mod error;
14
15#[ cfg( feature = "enabled" ) ]
17pub mod dependency
18{
19 #[ doc( inline ) ]
20 #[ cfg( feature = "error_typed" ) ]
21 pub use ::thiserror;
22 #[ doc( inline ) ]
23 #[ cfg( feature = "error_untyped" ) ]
24 pub use ::anyhow;
25}
26
27#[ cfg( feature = "enabled" ) ]
29pub mod prelude
30{
31 #[ doc( inline ) ]
32 #[ allow( unused_imports ) ]
33 pub use super::error::*;
34 #[ doc( inline ) ]
35 #[ cfg( feature = "error_untyped" ) ]
36 pub use super::error::untyped::*;
37 #[ doc( inline ) ]
38 #[ cfg( feature = "error_typed" ) ]
39 pub use super::error::typed::*;
40}
41
42#[ doc( inline ) ]
43#[ cfg( feature = "enabled" ) ]
44pub use prelude::*;