Crates.io | windivert |
lib.rs | windivert |
version | 0.6.0 |
source | src |
created_at | 2021-02-13 16:43:26.251514 |
updated_at | 2023-05-26 15:49:19.076393 |
description | Wrapper library around windivert-sys |
homepage | https://github.com/Rubensei/windivert-rust |
repository | https://github.com/Rubensei/windivert-rust.git |
max_upload_size | |
id | 354759 |
size | 47,243 |
Note: This is a work in process, so the crates won't follow semantic versioning until 1.0.0 release, so any version change below 1.0.0 might introduce breaking changes in the API or the crate usage in general.
This projects allows you to use WinDivert from rust. It consists of two crates:
windivert-sys
:
Crate providing raw bindings to the WinDivert user mode library.windivert
:
(WIP) Built on top of windivert-sys
and providing a friendlier Rust API and
some abstractions.To be able to build windivert-sys
you require WinDivert library files:
WINDIVERT_PATH
environment variable.WINDIVERT_DLL_OUTPUT
environment variable to save the generated build.WINDIVERT_STATIC
is set and it takes priority over the crate features.windivert-sys
shares the same API the native library uses. Read
official documentation for more
details.windivert
WIPNote: WinDivert dll expects the corresponding driver sys file to be located
on the same folder. Since the dll lib & sys files come in the same folder when
downloading from official web
windivert-sys
will search for it on the path provided with WINDIVERT_PATH
.