Crates.io | windivert-sys |
lib.rs | windivert-sys |
version | 0.10.0 |
source | src |
created_at | 2021-01-22 16:43:46.979833 |
updated_at | 2023-05-26 15:48:54.035574 |
description | Raw FFI bindings for WinDivert user mode library |
homepage | https://github.com/Rubensei/windivert-rust |
repository | https://github.com/Rubensei/windivert-rust.git |
max_upload_size | |
id | 345379 |
size | 1,023,162 |
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
.