[pbs-devel] [PATCH proxmox] schema: add nix "feature" feature

Gabriel Goller g.goller at proxmox.com
Tue Jul 15 10:27:47 CEST 2025


proxmox-schema uses `nix::sys::utsname` which needs the "feature"
feature [0].

[0]: https://docs.rs/nix/latest/nix/sys/utsname/index.html

Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---
 proxmox-schema/Cargo.toml     | 2 +-
 proxmox-schema/debian/control | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/proxmox-schema/Cargo.toml b/proxmox-schema/Cargo.toml
index b1c5aa6dc090..593f7d8747c6 100644
--- a/proxmox-schema/Cargo.toml
+++ b/proxmox-schema/Cargo.toml
@@ -21,7 +21,7 @@ textwrap = "0.16"
 
 # the upid type needs this for 'getpid'
 libc = { workspace = true, optional = true }
-nix = { workspace = true, optional = true }
+nix = { workspace = true, optional = true, features = [ "feature" ] }
 
 proxmox-api-macro = { workspace = true, optional = true }
 
diff --git a/proxmox-schema/debian/control b/proxmox-schema/debian/control
index 9160dd194b90..78b9682d016a 100644
--- a/proxmox-schema/debian/control
+++ b/proxmox-schema/debian/control
@@ -85,7 +85,8 @@ Depends:
  ${misc:Depends},
  librust-proxmox-schema-dev (= ${binary:Version}),
  librust-libc-0.2+default-dev (>= 0.2.107-~~),
- librust-nix-0.29+default-dev
+ librust-nix-0.29+default-dev,
+ librust-nix-0.29+feature-dev
 Provides:
  librust-proxmox-schema-4+upid-api-impl-dev (= ${binary:Version}),
  librust-proxmox-schema-4.1+upid-api-impl-dev (= ${binary:Version}),
-- 
2.39.5





More information about the pbs-devel mailing list