Merge pull request #304761 from JohnRTitor/bcachefs-tools

bcachefs-tools: 1.4.1 -> 1.7.0

Changed files
+43 -916
pkgs
tools
filesystems
bcachefs-tools
-871
pkgs/tools/filesystems/bcachefs-tools/Cargo.lock
···
-
# This file is automatically @generated by Cargo.
-
# It is not intended for manual editing.
-
version = 3
-
-
[[package]]
-
name = "aho-corasick"
-
version = "1.1.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0"
-
dependencies = [
-
"memchr",
-
]
-
-
[[package]]
-
name = "anstream"
-
version = "0.3.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "0ca84f3628370c59db74ee214b3263d58f9aadd9b4fe7e711fd87dc452b7f163"
-
dependencies = [
-
"anstyle",
-
"anstyle-parse",
-
"anstyle-query",
-
"anstyle-wincon",
-
"colorchoice",
-
"is-terminal",
-
"utf8parse",
-
]
-
-
[[package]]
-
name = "anstyle"
-
version = "1.0.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "15c4c2c83f81532e5845a733998b6971faca23490340a418e9b72a3ec9de12ea"
-
-
[[package]]
-
name = "anstyle-parse"
-
version = "0.2.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333"
-
dependencies = [
-
"utf8parse",
-
]
-
-
[[package]]
-
name = "anstyle-query"
-
version = "1.0.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b"
-
dependencies = [
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "anstyle-wincon"
-
version = "1.0.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "c677ab05e09154296dd37acecd46420c17b9713e8366facafa8fc0885167cf4c"
-
dependencies = [
-
"anstyle",
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "anyhow"
-
version = "1.0.75"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
-
-
[[package]]
-
name = "atty"
-
version = "0.2.14"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
-
dependencies = [
-
"hermit-abi 0.1.19",
-
"libc",
-
"winapi",
-
]
-
-
[[package]]
-
name = "autocfg"
-
version = "1.1.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
-
-
[[package]]
-
name = "bcachefs-rust"
-
version = "0.3.1"
-
dependencies = [
-
"anyhow",
-
"atty",
-
"bch_bindgen",
-
"byteorder",
-
"chrono",
-
"clap",
-
"clap_complete",
-
"colored",
-
"either",
-
"errno 0.2.8",
-
"gag",
-
"getset",
-
"libc",
-
"log",
-
"parse-display",
-
"rpassword",
-
"udev",
-
"uuid",
-
]
-
-
[[package]]
-
name = "bch_bindgen"
-
version = "0.1.0"
-
dependencies = [
-
"anyhow",
-
"bindgen",
-
"bitfield",
-
"bitflags 1.3.2",
-
"byteorder",
-
"chrono",
-
"colored",
-
"gag",
-
"libc",
-
"memoffset",
-
"paste",
-
"pkg-config",
-
"udev",
-
"uuid",
-
]
-
-
[[package]]
-
name = "bindgen"
-
version = "0.64.0"
-
source = "git+https://evilpiepirate.org/git/rust-bindgen.git#f773267b090bf16b9e8375fcbdcd8ba5e88806a8"
-
dependencies = [
-
"bitflags 1.3.2",
-
"cexpr",
-
"clang-sys",
-
"lazy_static",
-
"lazycell",
-
"peeking_take_while",
-
"proc-macro2",
-
"quote",
-
"regex",
-
"rustc-hash",
-
"shlex",
-
"syn 1.0.109",
-
]
-
-
[[package]]
-
name = "bitfield"
-
version = "0.14.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "2d7e60934ceec538daadb9d8432424ed043a904d8e0243f3c6446bce549a46ac"
-
-
[[package]]
-
name = "bitflags"
-
version = "1.3.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
-
-
[[package]]
-
name = "bitflags"
-
version = "2.4.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
-
-
[[package]]
-
name = "byteorder"
-
version = "1.5.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
-
-
[[package]]
-
name = "cc"
-
version = "1.0.83"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
-
dependencies = [
-
"libc",
-
]
-
-
[[package]]
-
name = "cexpr"
-
version = "0.6.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
-
dependencies = [
-
"nom",
-
]
-
-
[[package]]
-
name = "cfg-if"
-
version = "1.0.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
-
-
[[package]]
-
name = "chrono"
-
version = "0.4.31"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
-
dependencies = [
-
"num-traits",
-
]
-
-
[[package]]
-
name = "clang-sys"
-
version = "1.6.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "c688fc74432808e3eb684cae8830a86be1d66a2bd58e1f248ed0960a590baf6f"
-
dependencies = [
-
"glob",
-
"libc",
-
]
-
-
[[package]]
-
name = "clap"
-
version = "4.3.24"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "fb690e81c7840c0d7aade59f242ea3b41b9bc27bcd5997890e7702ae4b32e487"
-
dependencies = [
-
"clap_builder",
-
"clap_derive",
-
"once_cell",
-
]
-
-
[[package]]
-
name = "clap_builder"
-
version = "4.3.24"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "5ed2e96bc16d8d740f6f48d663eddf4b8a0983e79210fd55479b7bcd0a69860e"
-
dependencies = [
-
"anstream",
-
"anstyle",
-
"clap_lex",
-
"strsim",
-
"terminal_size",
-
]
-
-
[[package]]
-
name = "clap_complete"
-
version = "4.3.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "5fc443334c81a804575546c5a8a79b4913b50e28d69232903604cada1de817ce"
-
dependencies = [
-
"clap",
-
]
-
-
[[package]]
-
name = "clap_derive"
-
version = "4.3.12"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "54a9bb5758fc5dfe728d1019941681eccaf0cf8a4189b692a0ee2f2ecf90a050"
-
dependencies = [
-
"heck",
-
"proc-macro2",
-
"quote",
-
"syn 2.0.39",
-
]
-
-
[[package]]
-
name = "clap_lex"
-
version = "0.5.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b"
-
-
[[package]]
-
name = "colorchoice"
-
version = "1.0.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
-
-
[[package]]
-
name = "colored"
-
version = "2.0.4"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "2674ec482fbc38012cf31e6c42ba0177b431a0cb6f15fe40efa5aab1bda516f6"
-
dependencies = [
-
"is-terminal",
-
"lazy_static",
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "either"
-
version = "1.9.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07"
-
-
[[package]]
-
name = "errno"
-
version = "0.2.8"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1"
-
dependencies = [
-
"errno-dragonfly",
-
"libc",
-
"winapi",
-
]
-
-
[[package]]
-
name = "errno"
-
version = "0.3.7"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "f258a7194e7f7c2a7837a8913aeab7fd8c383457034fa20ce4dd3dcb813e8eb8"
-
dependencies = [
-
"libc",
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "errno-dragonfly"
-
version = "0.1.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"
-
dependencies = [
-
"cc",
-
"libc",
-
]
-
-
[[package]]
-
name = "fastrand"
-
version = "2.0.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5"
-
-
[[package]]
-
name = "filedescriptor"
-
version = "0.8.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "7199d965852c3bac31f779ef99cbb4537f80e952e2d6aa0ffeb30cce00f4f46e"
-
dependencies = [
-
"libc",
-
"thiserror",
-
"winapi",
-
]
-
-
[[package]]
-
name = "gag"
-
version = "1.0.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "a713bee13966e9fbffdf7193af71d54a6b35a0bb34997cd6c9519ebeb5005972"
-
dependencies = [
-
"filedescriptor",
-
"tempfile",
-
]
-
-
[[package]]
-
name = "getset"
-
version = "0.1.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "e45727250e75cc04ff2846a66397da8ef2b3db8e40e0cef4df67950a07621eb9"
-
dependencies = [
-
"proc-macro-error",
-
"proc-macro2",
-
"quote",
-
"syn 1.0.109",
-
]
-
-
[[package]]
-
name = "glob"
-
version = "0.3.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
-
-
[[package]]
-
name = "heck"
-
version = "0.4.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
-
-
[[package]]
-
name = "hermit-abi"
-
version = "0.1.19"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
-
dependencies = [
-
"libc",
-
]
-
-
[[package]]
-
name = "hermit-abi"
-
version = "0.3.3"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7"
-
-
[[package]]
-
name = "io-lifetimes"
-
version = "1.0.11"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2"
-
dependencies = [
-
"hermit-abi 0.3.3",
-
"libc",
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "is-terminal"
-
version = "0.4.9"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b"
-
dependencies = [
-
"hermit-abi 0.3.3",
-
"rustix 0.38.25",
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "lazy_static"
-
version = "1.4.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
-
-
[[package]]
-
name = "lazycell"
-
version = "1.3.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
-
-
[[package]]
-
name = "libc"
-
version = "0.2.150"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c"
-
-
[[package]]
-
name = "libudev-sys"
-
version = "0.1.4"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "3c8469b4a23b962c1396b9b451dda50ef5b283e8dd309d69033475fa9b334324"
-
dependencies = [
-
"libc",
-
"pkg-config",
-
]
-
-
[[package]]
-
name = "linux-raw-sys"
-
version = "0.3.8"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519"
-
-
[[package]]
-
name = "linux-raw-sys"
-
version = "0.4.11"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829"
-
-
[[package]]
-
name = "log"
-
version = "0.4.20"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
-
-
[[package]]
-
name = "memchr"
-
version = "2.6.4"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
-
-
[[package]]
-
name = "memoffset"
-
version = "0.8.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1"
-
dependencies = [
-
"autocfg",
-
]
-
-
[[package]]
-
name = "minimal-lexical"
-
version = "0.2.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
-
-
[[package]]
-
name = "nom"
-
version = "7.1.3"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
-
dependencies = [
-
"memchr",
-
"minimal-lexical",
-
]
-
-
[[package]]
-
name = "num-traits"
-
version = "0.2.17"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c"
-
dependencies = [
-
"autocfg",
-
]
-
-
[[package]]
-
name = "once_cell"
-
version = "1.18.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
-
-
[[package]]
-
name = "parse-display"
-
version = "0.1.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "bd87725635cbae7fe960f91f55a114ed104e637790317cc8d9197ea16b058010"
-
dependencies = [
-
"lazy_static",
-
"parse-display-derive",
-
"regex",
-
]
-
-
[[package]]
-
name = "parse-display-derive"
-
version = "0.1.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "cc52b391380aa8550348736a356bf028f5469391d580533a566e97543f55e813"
-
dependencies = [
-
"lazy_static",
-
"proc-macro2",
-
"quote",
-
"regex",
-
"regex-syntax 0.6.29",
-
"syn 1.0.109",
-
]
-
-
[[package]]
-
name = "paste"
-
version = "1.0.14"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
-
-
[[package]]
-
name = "peeking_take_while"
-
version = "0.1.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
-
-
[[package]]
-
name = "pkg-config"
-
version = "0.3.27"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
-
-
[[package]]
-
name = "proc-macro-error"
-
version = "1.0.4"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
-
dependencies = [
-
"proc-macro-error-attr",
-
"proc-macro2",
-
"quote",
-
"syn 1.0.109",
-
"version_check",
-
]
-
-
[[package]]
-
name = "proc-macro-error-attr"
-
version = "1.0.4"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
-
dependencies = [
-
"proc-macro2",
-
"quote",
-
"version_check",
-
]
-
-
[[package]]
-
name = "proc-macro2"
-
version = "1.0.69"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da"
-
dependencies = [
-
"unicode-ident",
-
]
-
-
[[package]]
-
name = "quote"
-
version = "1.0.33"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
-
dependencies = [
-
"proc-macro2",
-
]
-
-
[[package]]
-
name = "redox_syscall"
-
version = "0.4.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
-
dependencies = [
-
"bitflags 1.3.2",
-
]
-
-
[[package]]
-
name = "regex"
-
version = "1.10.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343"
-
dependencies = [
-
"aho-corasick",
-
"memchr",
-
"regex-automata",
-
"regex-syntax 0.8.2",
-
]
-
-
[[package]]
-
name = "regex-automata"
-
version = "0.4.3"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f"
-
dependencies = [
-
"aho-corasick",
-
"memchr",
-
"regex-syntax 0.8.2",
-
]
-
-
[[package]]
-
name = "regex-syntax"
-
version = "0.6.29"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
-
-
[[package]]
-
name = "regex-syntax"
-
version = "0.8.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
-
-
[[package]]
-
name = "rpassword"
-
version = "4.0.5"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "99371657d3c8e4d816fb6221db98fa408242b0b53bac08f8676a41f8554fe99f"
-
dependencies = [
-
"libc",
-
"winapi",
-
]
-
-
[[package]]
-
name = "rustc-hash"
-
version = "1.1.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
-
-
[[package]]
-
name = "rustix"
-
version = "0.37.27"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2"
-
dependencies = [
-
"bitflags 1.3.2",
-
"errno 0.3.7",
-
"io-lifetimes",
-
"libc",
-
"linux-raw-sys 0.3.8",
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "rustix"
-
version = "0.38.25"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "dc99bc2d4f1fed22595588a013687477aedf3cdcfb26558c559edb67b4d9b22e"
-
dependencies = [
-
"bitflags 2.4.1",
-
"errno 0.3.7",
-
"libc",
-
"linux-raw-sys 0.4.11",
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "shlex"
-
version = "1.2.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380"
-
-
[[package]]
-
name = "strsim"
-
version = "0.10.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
-
-
[[package]]
-
name = "syn"
-
version = "1.0.109"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
-
dependencies = [
-
"proc-macro2",
-
"quote",
-
"unicode-ident",
-
]
-
-
[[package]]
-
name = "syn"
-
version = "2.0.39"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a"
-
dependencies = [
-
"proc-macro2",
-
"quote",
-
"unicode-ident",
-
]
-
-
[[package]]
-
name = "tempfile"
-
version = "3.8.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5"
-
dependencies = [
-
"cfg-if",
-
"fastrand",
-
"redox_syscall",
-
"rustix 0.38.25",
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "terminal_size"
-
version = "0.2.6"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "8e6bf6f19e9f8ed8d4048dc22981458ebcf406d67e94cd422e5ecd73d63b3237"
-
dependencies = [
-
"rustix 0.37.27",
-
"windows-sys",
-
]
-
-
[[package]]
-
name = "thiserror"
-
version = "1.0.50"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2"
-
dependencies = [
-
"thiserror-impl",
-
]
-
-
[[package]]
-
name = "thiserror-impl"
-
version = "1.0.50"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8"
-
dependencies = [
-
"proc-macro2",
-
"quote",
-
"syn 2.0.39",
-
]
-
-
[[package]]
-
name = "udev"
-
version = "0.7.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "4ebdbbd670373442a12fe9ef7aeb53aec4147a5a27a00bbc3ab639f08f48191a"
-
dependencies = [
-
"libc",
-
"libudev-sys",
-
"pkg-config",
-
]
-
-
[[package]]
-
name = "unicode-ident"
-
version = "1.0.12"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
-
-
[[package]]
-
name = "utf8parse"
-
version = "0.2.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
-
-
[[package]]
-
name = "uuid"
-
version = "1.6.1"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560"
-
-
[[package]]
-
name = "version_check"
-
version = "0.9.4"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
-
-
[[package]]
-
name = "winapi"
-
version = "0.3.9"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
-
dependencies = [
-
"winapi-i686-pc-windows-gnu",
-
"winapi-x86_64-pc-windows-gnu",
-
]
-
-
[[package]]
-
name = "winapi-i686-pc-windows-gnu"
-
version = "0.4.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
-
-
[[package]]
-
name = "winapi-x86_64-pc-windows-gnu"
-
version = "0.4.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
-
-
[[package]]
-
name = "windows-sys"
-
version = "0.48.0"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
-
dependencies = [
-
"windows-targets",
-
]
-
-
[[package]]
-
name = "windows-targets"
-
version = "0.48.5"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
-
dependencies = [
-
"windows_aarch64_gnullvm",
-
"windows_aarch64_msvc",
-
"windows_i686_gnu",
-
"windows_i686_msvc",
-
"windows_x86_64_gnu",
-
"windows_x86_64_gnullvm",
-
"windows_x86_64_msvc",
-
]
-
-
[[package]]
-
name = "windows_aarch64_gnullvm"
-
version = "0.48.5"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
-
-
[[package]]
-
name = "windows_aarch64_msvc"
-
version = "0.48.5"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
-
-
[[package]]
-
name = "windows_i686_gnu"
-
version = "0.48.5"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
-
-
[[package]]
-
name = "windows_i686_msvc"
-
version = "0.48.5"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
-
-
[[package]]
-
name = "windows_x86_64_gnu"
-
version = "0.48.5"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
-
-
[[package]]
-
name = "windows_x86_64_gnullvm"
-
version = "0.48.5"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
-
-
[[package]]
-
name = "windows_x86_64_msvc"
-
version = "0.48.5"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
···
+43 -45
pkgs/tools/filesystems/bcachefs-tools/default.nix
···
-
{ lib
-
, stdenv
-
, fetchFromGitHub
-
, pkg-config
-
, libuuid
-
, libsodium
-
, keyutils
-
, liburcu
-
, zlib
-
, libaio
-
, zstd
-
, lz4
-
, attr
-
, udev
-
, nixosTests
-
, fuse3
-
, cargo
-
, rustc
-
, rustPlatform
-
, makeWrapper
-
, writeScript
-
, python3
-
, fuseSupport ? false
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bcachefs-tools";
-
version = "1.4.1";
src = fetchFromGitHub {
owner = "koverstreet";
repo = "bcachefs-tools";
rev = "v${finalAttrs.version}";
-
hash = "sha256-+KqTiIp9dIJWG2KvgvPwXC7p754XfgvKHjvwjCdbvCs=";
};
nativeBuildInputs = [
···
makeWrapper
];
-
cargoRoot = "rust-src";
-
cargoDeps = rustPlatform.importCargoLock {
-
lockFile = ./Cargo.lock;
-
outputHashes = {
-
"bindgen-0.64.0" = "sha256-GNG8as33HLRYJGYe0nw6qBzq86aHiGonyynEM7gaEE4=";
-
};
-
};
-
buildInputs = [
libaio
keyutils
···
udev
] ++ lib.optional fuseSupport fuse3;
-
# FIXME: Try enabling this once the default linux kernel is at least 6.7
-
doCheck = false; # needs bcachefs module loaded on builder
-
checkFlags = [ "BCACHEFS_TEST_USE_VALGRIND=no" ];
makeFlags = [
"PREFIX=${placeholder "out"}"
"VERSION=${finalAttrs.version}"
"INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
-
"BCACHEFS_FUSE=${toString fuseSupport}"
-
];
preCheck = lib.optionalString (!fuseSupport) ''
rm tests/test_fuse.py
'';
# Tries to install to the 'systemd-minimal' and 'udev' nix installation paths
installFlags = [
···
version="$(echo $res | jq '.[0].name | split("v") | .[1]' --raw-output)"
update-source-version ${finalAttrs.pname} "$version" --ignore-same-hash
-
-
curl "https://raw.githubusercontent.com/${finalAttrs.src.owner}/${finalAttrs.src.repo}/v$version/rust-src/Cargo.lock" > \
-
"$(git rev-parse --show-toplevel)/pkgs/tools/filesystems/bcachefs-tools/Cargo.lock"
'';
};
enableParallelBuilding = true;
-
meta = with lib; {
description = "Tool for managing bcachefs filesystems";
homepage = "https://bcachefs.org/";
-
license = licenses.gpl2Only;
-
maintainers = with maintainers; [ davidak Madouura ];
-
platforms = platforms.linux;
};
})
···
+
{
+
lib,
+
stdenv,
+
fetchFromGitHub,
+
pkg-config,
+
libuuid,
+
libsodium,
+
keyutils,
+
liburcu,
+
zlib,
+
libaio,
+
zstd,
+
lz4,
+
attr,
+
udev,
+
nixosTests,
+
fuse3,
+
cargo,
+
rustc,
+
rustPlatform,
+
makeWrapper,
+
writeScript,
+
python3,
+
fuseSupport ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bcachefs-tools";
+
version = "1.7.0";
src = fetchFromGitHub {
owner = "koverstreet";
repo = "bcachefs-tools";
rev = "v${finalAttrs.version}";
+
hash = "sha256-nHT18bADESDBHoo9P+J3gGc092hRYs2vaWupgqlkvaA=";
};
nativeBuildInputs = [
···
makeWrapper
];
buildInputs = [
libaio
keyutils
···
udev
] ++ lib.optional fuseSupport fuse3;
+
cargoDeps = rustPlatform.fetchCargoTarball {
+
src = finalAttrs.src;
+
hash = "sha256-RsRz/nb8L+pL1U4l6RnvqeDFddPvcBFH4wdV7G60pxA=";
+
};
makeFlags = [
"PREFIX=${placeholder "out"}"
"VERSION=${finalAttrs.version}"
"INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
+
] ++ lib.optional fuseSupport "BCACHEFS_FUSE=1";
+
+
# FIXME: Try enabling this once the default linux kernel is at least 6.7
+
doCheck = false; # needs bcachefs module loaded on builder
preCheck = lib.optionalString (!fuseSupport) ''
rm tests/test_fuse.py
'';
+
checkFlags = [ "BCACHEFS_TEST_USE_VALGRIND=no" ];
# Tries to install to the 'systemd-minimal' and 'udev' nix installation paths
installFlags = [
···
version="$(echo $res | jq '.[0].name | split("v") | .[1]' --raw-output)"
update-source-version ${finalAttrs.pname} "$version" --ignore-same-hash
'';
};
enableParallelBuilding = true;
+
meta = {
description = "Tool for managing bcachefs filesystems";
homepage = "https://bcachefs.org/";
+
license = lib.licenses.gpl2Only;
+
maintainers = with lib.maintainers; [
+
davidak
+
johnrtitor
+
Madouura
+
];
+
platforms = lib.platforms.linux;
};
})