diff options
Diffstat (limited to 'crates/windivert/src/lib.rs')
| -rw-r--r-- | crates/windivert/src/lib.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/crates/windivert/src/lib.rs b/crates/windivert/src/lib.rs new file mode 100644 index 0000000..c4f5a05 --- /dev/null +++ b/crates/windivert/src/lib.rs @@ -0,0 +1,28 @@ +#![deny(missing_docs)] +/*! +Wrapper around [`windivert_sys`] ffi crate. +*/ + +/// WinDivert address data structures +pub mod address; +mod divert; +/// WinDivert error types +pub mod error; +/// Layer types used for typestate pattern +pub mod layer; +/// WinDivert packet types +pub mod packet; + +pub use divert::*; + +/// Prelude module for [`WinDivert`]. +pub mod prelude { + pub use windivert_sys::{ + WinDivertEvent, WinDivertFlags, WinDivertLayer, WinDivertParam, WinDivertShutdownMode, + }; + + pub use crate::divert::*; + pub use crate::error::*; + pub use crate::layer::*; + pub use crate::packet::*; +} |
