From 02cfa39677758a58f2007bca4ea499b1a5b7dbf6 Mon Sep 17 00:00:00 2001 From: "w.pomp" Date: Tue, 27 Oct 2026 19:01:15 +0100 Subject: [PATCH] - pin zip dependency of bioformats --- ndbioimage/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ndbioimage/Cargo.toml b/ndbioimage/Cargo.toml index a1635f6..57317d8 100644 --- a/ndbioimage/Cargo.toml +++ b/ndbioimage/Cargo.toml @@ -51,6 +51,9 @@ tokio = { version = "1", features = ["rt", "rt-multi-thread"], optional = true } thread_local = { version = "1", optional = true } xmltree = { version = "0.12", optional = true } yaml_serde = { version = "0.10", optional = true } +# "bioformats 0.1.8" is written for "zip 2.4.x", where zip::read::ZipFile has a single lifetime parameter. +# "zip >= 2.5" added a second "R: Read" generic (2.6.1 breaks bioformats), so the build fails. +zip = { version = "=2.4.2", optional = true, default-features = false } [dev-dependencies] rayon = "1" @@ -69,7 +72,7 @@ all = ["bioformats_java", "bioformats_rust", "czi", "gpl-formats", "movie", "tif gpl-formats = [] python = ["dep:pyo3", "dep:numpy", "dep:pyo3-stub-gen", "dep:postcard", "ome-metadata/python"] czi = ["dep:libczirw-sys", "dep:xmltree", "dep:thread_local"] -bioformats_rust = ["dep:bioformats", "dep:thread_local"] +bioformats_rust = ["dep:bioformats", "dep:thread_local", "dep:zip"] bioformats_java = ["dep:j4rs", "dep:thread_local", "dep:downloader"] tiffwrite = ["dep:tiffwrite", "dep:indicatif", "dep:console", "dep:rayon"] tiffseq = ["dep:tiff", "dep:yaml_serde"]