From f28e22094d3177e8a39816beff72364a2e9ef678 Mon Sep 17 00:00:00 2001
From: NoisyCoil <noisycoil@tutanota.com>
Date: Fri, 1 Aug 2025 01:51:45 +0200
Subject: [PATCH] update rustix to v1

---
 debian/control                 |  4 ++--
 debian/patches/relax-deps.diff | 21 +++++++++++++++++++++
 debian/patches/series          |  1 +
 3 files changed, 24 insertions(+), 2 deletions(-)
 create mode 100644 debian/patches/relax-deps.diff

diff --git a/debian/control b/debian/control
index 473ac97..fb3f2b6 100644
--- a/debian/control
+++ b/debian/control
@@ -19,11 +19,11 @@ Build-Depends: debhelper-compat (= 13),
  librust-lazy-static-1-dev (>= 1.1-~),
  librust-libc-0.2-dev,
  librust-pci-driver-0.1-dev (>= 0.1.2-~),
- librust-rustix-0.38-dev,
+ librust-rustix-1-dev,
 # virtio-driver/Cargo.toml:
  librust-bitflags-1-dev (>> 1.2),
  librust-libc-0.2-dev,
- librust-rustix-0.38-dev,
+ librust-rustix-1-dev,
  librust-memmap2-0.9-dev,
  librust-pci-driver-0.1-dev (>= 0.1.2-~),
  librust-virtio-bindings-0.2-dev,
diff --git a/debian/patches/relax-deps.diff b/debian/patches/relax-deps.diff
new file mode 100644
index 0000000..3ec1c83
--- /dev/null
+++ b/debian/patches/relax-deps.diff
@@ -0,0 +1,21 @@
+--- a/blkio/Cargo.toml
++++ b/blkio/Cargo.toml
+@@ -28,6 +28,6 @@
+ io-uring = { version = "0.6", optional = true }
+ lazy_static = "1.1"
+ libc = { version = "0.2", features = ["extra_traits"] }
+-rustix = { version = "0.38", features = ["event", "fs", "mm"] }
++rustix = { version = "1", features = ["event", "fs", "mm"] }
+ pci-driver = { version = "0.1.2", default-features = false, optional = true }
+ virtio-driver = { path = "../virtio-driver", version = "0.6.1", default-features = false, optional = true }
+--- a/virtio-driver/Cargo.toml
++++ b/virtio-driver/Cargo.toml
+@@ -18,7 +18,7 @@
+ [dependencies]
+ bitflags = "1.2"
+ libc = "0.2"
+-rustix = { version = "0.38", features = ["event"] }
++rustix = { version = "1", features = ["event"] }
+ memmap2 = { version = "<0.10", optional = true }
+ pci-driver = { version = "0.1.2", default-features = false, optional = true }
+ virtio-bindings = { version = "0.2", optional = true }
diff --git a/debian/patches/series b/debian/patches/series
index 918baae..2ecfa28 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 locked2offline.diff
+relax-deps.diff
-- 
2.47.2

