| 1 | #![doc = include_str!("../readme.md" )] |
| 2 | #![cfg_attr ( |
| 3 | windows_debugger_visualizer, |
| 4 | debugger_visualizer(natvis_file = "../.natvis" ) |
| 5 | )] |
| 6 | #![cfg_attr (all(not(feature = "std" ), not(test)), no_std)] |
| 7 | #![cfg_attr (not(windows), allow(unused_imports))] |
| 8 | |
| 9 | extern crate alloc; |
| 10 | |
| 11 | #[allow (unused_imports)] |
| 12 | use alloc::{string::String, vec::Vec}; |
| 13 | |
| 14 | mod bindings; |
| 15 | use bindings::*; |
| 16 | |
| 17 | #[cfg (all(windows, not(windows_slim_errors)))] |
| 18 | mod com; |
| 19 | |
| 20 | #[cfg (windows)] |
| 21 | mod strings; |
| 22 | #[cfg (windows)] |
| 23 | use strings::*; |
| 24 | |
| 25 | #[cfg (all(windows, not(windows_slim_errors)))] |
| 26 | mod bstr; |
| 27 | |
| 28 | mod error; |
| 29 | pub use error::*; |
| 30 | |
| 31 | mod hresult; |
| 32 | pub use hresult::HRESULT; |
| 33 | |
| 34 | mod bool; |
| 35 | pub use bool::BOOL; |
| 36 | |
| 37 | /// A specialized [`Result`] type that provides Windows error information. |
| 38 | pub type Result<T> = core::result::Result<T, Error>; |
| 39 | |