Skip to content

pingora-core fails to compile on FreeBSD #814

@antoncxx

Description

@antoncxx

Describe the bug

pingora-core fails to compile on FreeBSD due to an outdated dependency.

Pingora info

Pingora version: 9ac75d0
Rust version: cargo 1.93.0 (083ac5135 2025-12-15)
Operating system version: FreeBSD 14.3-RELEASE

Additional context

pingora-core depends on an old version of the nix crate (0.24.3), which is causing the problem.
Updating the nix dependency to the latest version resolves the issue:

diff --git a/pingora-core/Cargo.toml b/pingora-core/Cargo.toml
index 03015d2..412f8a7 100644
--- a/pingora-core/Cargo.toml
+++ b/pingora-core/Cargo.toml
@@ -75,7 +75,7 @@ lru = { workspace = true, optional = true }

 [target.'cfg(unix)'.dependencies]
 daemonize = "0.5.0"
-nix = "~0.24.3"
+nix = { version = "~0.31.1", features = ["socket", "net"] }

I’d be glad to submit a pull request with this change if desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions