Skip to content

Commit

Permalink
Revert "Add wait methods" to fix commit history and build issues due …
Browse files Browse the repository at this point in the history
…to different windows versions

This reverts commit c2f892e.
  • Loading branch information
Rubensei committed Mar 23, 2023
1 parent 408d208 commit b165d1d
Show file tree
Hide file tree
Showing 13 changed files with 632 additions and 793 deletions.
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ and this project adheres to

## [Unreleased-sys]

## [0.5.5] - 2023-03-233

### Fixed

- Fix `close` errors due to double inner close call

## [sys-0.9.2] - 2023-03-23

### Fixed

- Downgrade windows to `0.43` to avoid build issues with `windivert` due to
different windows versions

## [sys-0.9.1] - 2023-02-06

### Fixed
Expand Down Expand Up @@ -58,8 +71,10 @@ and this project adheres to

- Initial tagged release

[unreleased]: https://github.com/Rubensei/windivert-rust/compare/windivert-0.5.4...HEAD
[unreleased-sys]: https://github.com/Rubensei/windivert-rust/compare/windivert-sys-0.9.1...HEAD
[unreleased]: https://github.com/Rubensei/windivert-rust/compare/windivert-0.5.5...HEAD
[unreleased-sys]: https://github.com/Rubensei/windivert-rust/compare/windivert-sys-0.9.2...HEAD
[sys-0.9.2]: https://github.com/Rubensei/windivert-rust/compare/windivert-sys-0.9.1...windivert-sys-0.9.2
[0.5.5]: https://github.com/Rubensei/windivert-rust/compare/windivert-0.5.4...windivert-0.5.5
[sys-0.9.1]: https://github.com/Rubensei/windivert-rust/compare/windivert-sys-0.9.0...windivert-sys-0.9.1
[0.5.4]: https://github.com/Rubensei/windivert-rust/compare/windivert-0.5.3...windivert-0.5.4
[0.5.3]: https://github.com/Rubensei/windivert-rust/compare/windivert-0.5.1...windivert-0.5.3
Expand Down
4 changes: 2 additions & 2 deletions windivert-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windivert-sys"
version = "0.9.1"
version = "0.9.2"
description = "Raw FFI bindings for WinDivert user mode library"
authors = ["Ruben Serrano Izquierdo <rserranoizq@gmail.com>"]
repository = "https://github.com/Rubensei/windivert-rust.git"
Expand All @@ -26,7 +26,7 @@ vendored = []
thiserror = "1"

[dependencies.windows]
version = "0.44"
version = "0.43"
features = [
"Win32_Foundation",
"Win32_System_IO",
Expand Down
10 changes: 3 additions & 7 deletions windivert/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
[package]
name = "windivert"
version = "0.6.0-alpha.1"
version = "0.5.5"
description = "Wrapper library around windivert-sys"
authors = ["Ruben Serrano Izquierdo <rserranoizq@gmail.com>"]
repository = "https://github.com/Rubensei/windivert-rust.git"
homepage = "https://github.com/Rubensei/windivert-rust"
documentation = "https://docs.rs/windivert"
keywords = ["ffi", "windivert", "bindings", "driver"]
categories = ["external-ffi-bindings"]
readme = "../README.md"
license = "LGPL-3.0-or-later"
edition = "2021"
rust-version = "1.64"

[features]
default = []
tracing = ["dep:tracing"]
vendored = ["windivert-sys/vendored"]

[dependencies]
etherparse = "0.13"
thiserror = "1"
tracing = { version = "0.1", optional = true }
windivert-sys = { version = "0.9.1", path = "../windivert-sys" }
windivert-sys = { version = "0.9.2", path = "../windivert-sys" }

[dependencies.windows]
version = "0.44"
version = "0.43"
features = [
"Devices_Custom",
"Win32_Devices",
Expand Down
6 changes: 0 additions & 6 deletions windivert/src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ impl<L: layer::WinDivertLayerTrait> WinDivertAddress<L> {
self.data.loopback()
}

/// Loopback setter
#[inline]
pub fn set_loopback(&mut self, value: bool) {
self.data.set_loopback(value)
}

/// Set to `true` for impostor packets, `false` otherwise.
#[inline]
pub fn impostor(&self) -> bool {
Expand Down
Loading

0 comments on commit b165d1d

Please sign in to comment.