Compilation fails on freebsd
I was excited to switch to zbus for notification in https://github.com/wez/wezterm/commit/a2f891ad1b6117cddac08f0da46e45de725941d9 but have an issue on freebsd:
error[E0432]: unresolved import `nix::sys::socket::sockopt::PeerCredentials`
--> /.cargo/registry/src/github.com-1ecc6299db9ec823/zbus-1.8.0/src/connection.rs:163:44
|
163 | use nix::sys::socket::{getsockopt, sockopt::PeerCredentials};
| ^^^^^^^^^^^^^^^^^^^^^^^^ no `PeerCredentials` in `sys::socket::sockopt`
error[E0432]: unresolved import `nix::sys::socket::sockopt::PeerCredentials`
--> /.cargo/registry/src/github.com-1ecc6299db9ec823/zbus-1.8.0/src/azync/connection.rs:180:44
|
180 | use nix::sys::socket::{getsockopt, sockopt::PeerCredentials};
| ^^^^^^^^^^^^^^^^^^^^^^^^ no `PeerCredentials` in `sys::socket::sockopt`
error: aborting due to 2 previous errors
FreeBSD is a bit awkward in CI; I'm using Cirrus and triggering from github with this config: https://github.com/wez/wezterm/blob/main/.cirrus.yml
I found https://potyarkin.ml/posts/2020/cirrus-ci-integration-for-gitlab-projects/ which explains a hack for connecting it to GitLab.