Package: uv The Debian uv currently uses version 1 of the toml crate, and version 0.22 of the toml-edit crate which we are trying to phase out.
The Debian package is currently down-patching toml and toml-edit as the upstream version uses version 0.9 of toml and 0.23 of toml-edit. The API changes between toml version 0.9 and 1 are very minimal, and the same is true for toml-edit 0.23 and 0.25. A debdiff is attached.
diff -Nru uv-0.9.17+ds1/debian/changelog uv-0.9.17+ds1/debian/changelog --- uv-0.9.17+ds1/debian/changelog 2026-05-20 09:16:14.000000000 +0000 +++ uv-0.9.17+ds1/debian/changelog 2026-05-28 20:09:22.000000000 +0000 @@ -1,3 +1,10 @@ +uv (0.9.17+ds1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Update toml to version 1 and toml_edit to version 0.25. + + -- Peter Michael Green <[email protected]> Thu, 28 May 2026 20:09:22 +0000 + uv (0.9.17+ds1-1) unstable; urgency=medium * Initial release. (Closes: #1115616) diff -Nru uv-0.9.17+ds1/debian/control uv-0.9.17+ds1/debian/control --- uv-0.9.17+ds1/debian/control 2026-05-20 07:06:18.000000000 +0000 +++ uv-0.9.17+ds1/debian/control 2026-05-28 20:09:10.000000000 +0000 @@ -204,9 +204,9 @@ librust-tokio-util-0.7+compat-dev (>= 0.7.12), librust-tokio-util-0.7+default-dev (>= 0.7.12), librust-tokio-util-0.7+io-dev (>= 0.7.12), - librust-toml-0.8+default-dev, - librust-toml-edit-0.22+default-dev, - librust-toml-edit-0.22+serde-dev, + librust-toml-1+default-dev, + librust-toml-edit-0.25+default-dev, + librust-toml-edit-0.25+serde-dev, librust-tracing-0.1+default-dev (>= 0.1.40), librust-tracing-subscriber-0.3+default-dev (>= 0.3.18), librust-tracing-subscriber-0.3+env-filter-dev (>= 0.3.18), diff -Nru uv-0.9.17+ds1/debian/patches/Relax-dependencies.patch uv-0.9.17+ds1/debian/patches/Relax-dependencies.patch --- uv-0.9.17+ds1/debian/patches/Relax-dependencies.patch 2026-05-20 07:06:18.000000000 +0000 +++ uv-0.9.17+ds1/debian/patches/Relax-dependencies.patch 2026-05-28 20:08:53.000000000 +0000 @@ -242,8 +242,8 @@ +tokio = { version = "1", features = ["fs", "io-util", "macros", "process", "rt", "signal", "sync", "time"] } +tokio-stream = { version = ">=0.1, <1" } +tokio-util = { version = ">=0.7, <1", features = ["compat", "io"] } -+toml = { version = ">=0.8, <1" } -+toml_edit = { version = ">=0.22, <1", features = ["serde"] } ++toml = { version = "1", features = ["fast_hash"] } ++toml_edit = { version = "0.25", features = ["serde"] } +tracing = { version = ">=0.1, <1" } +tracing-durations-export = { version = ">=0.3, <1", features = ["plot"] } +tracing-subscriber = { version = ">=0.3, <1" } # Default feature set for uv_build, uv activates extra features @@ -303,17 +303,3 @@ [workspace.metadata.cargo-shear] ignored = ["flate2", "xz2", "h2", "uv-performance-memory-allocator"] -diff --git a/crates/uv-workspace/src/pyproject_mut.rs b/crates/uv-workspace/src/pyproject_mut.rs -index bc3cf0f..a66e681 100644 ---- a/crates/uv-workspace/src/pyproject_mut.rs -+++ b/crates/uv-workspace/src/pyproject_mut.rs -@@ -554,8 +554,7 @@ impl PyProjectTomlMut { - } - } - } else { -- let position = isize::try_from(size).expect("TOML table size fits in `isize`"); -- table.set_position(position); -+ table.set_position(size); - } - - // Push the item to the table.

