Skip to content

Commit

Permalink
Switch from ioctl_sys to nix's ioctl
Browse files Browse the repository at this point in the history
Allows to be built on other platforms like FreeBSD.
  • Loading branch information
alvinpeters committed Jun 11, 2024
1 parent a1d6064 commit 6c25733
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 97 deletions.
194 changes: 123 additions & 71 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ travis-ci = { repository = "mullvad/pfctl-rs" }

[dependencies]
error-chain = "0.12.4"
ioctl-sys = "0.8.0"
# Has to stick to 0.26.4 since versions >= 0.27 require Rust 1.65 and above.
nix = { version = "0.26.4", features = ["ioctl"], default-features = false }
libc = "0.2.29"
derive_builder = "0.9"
ipnetwork = "0.20.0"
Expand Down
Loading

0 comments on commit 6c25733

Please sign in to comment.