Description: Relax build dependencies
 Relax build dependencies to match what's available in Debian
Author: Jonathan Carter <jcc@debian.org>
Last-Update: 2024-07-22

--- bcachefs-tools-1.9.4.orig/Cargo.toml
+++ bcachefs-tools-1.9.4/Cargo.toml
@@ -12,19 +12,19 @@ path = "src/bcachefs.rs"
 [dependencies]
 log = { version = "0.4", features = ["std"] }
 clap = { version = "4.0.32", features = ["derive", "wrap_help"] }
-clap_complete = "4.3.2"
+clap_complete = ">= 4.3.2"
 anyhow = "1.0"
 libc = "0.2.69"
-udev = "0.7.0"
+udev = ">= 0.7 , < 1"
 uuid = "1.2.2"
-errno = "0.2"
+errno = ">= 0.2 , < 1"
 either = "1.5"
 bch_bindgen = { path = "bch_bindgen" }
 byteorder = "1.3"
 strum = { version = "0.26", features = ["derive"] }
 strum_macros = "0.26"
 zeroize = { version = "1", features = ["std", "zeroize_derive"] }
-rustix = { version = "0.38.34", features = ["termios"] }
+rustix = { version = ">= 0.35 , < 1", features = ["termios"] }

 [dependencies.env_logger]
 version = "0.10"
--- bcachefs-tools-1.9.4.orig/bch_bindgen/Cargo.toml
+++ bcachefs-tools-1.9.4/bch_bindgen/Cargo.toml
@@ -12,11 +12,11 @@ crate-type = ["lib"]
 anyhow = "1.0"
 uuid = "1.2.2"
 bitfield = "0.14.0"
-memoffset = "0.8.0"
+memoffset = "0.8"
 byteorder = "1.3"
 bitflags = "1.3.2"
-paste = "1.0.11"
+paste = "1.0"

 [build-dependencies]
 pkg-config = "0.3"
-bindgen = "0.69.4"
+bindgen = "0.66"
