From 992be06f6743c8a057e884050d2e074636b8c713 Mon Sep 17 00:00:00 2001 From: konsti Date: Thu, 23 Apr 2026 15:40:07 -0400 Subject: [PATCH] Add rust-toolchain.toml to uv-build sdist (#19131) This file was previously missing, causing errors when an older version was preinstalled. Renovate should also pick up the new file. --- .github/workflows/ci.yml | 2 +- crates/uv-build/pyproject.toml | 1 + crates/uv-build/rust-toolchain.toml | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 crates/uv-build/rust-toolchain.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81abf30ebd..c4e7ed8a95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: [[ -z "$file" ]] && continue [[ "$file" =~ \.rs$ ]] && rust_code_changed=1 [[ "$file" == "Cargo.toml" || "$file" == "Cargo.lock" || "$file" =~ ^crates/.*/Cargo\.toml$ ]] && rust_deps_changed=1 - [[ "$file" == "rust-toolchain.toml" || "$file" =~ ^\.cargo/ ]] && rust_config_changed=1 + [[ "$file" == "rust-toolchain.toml" || "$file" == "crates/uv-build/rust-toolchain.toml" || "$file" =~ ^\.cargo/ ]] && rust_config_changed=1 [[ "$file" == "pyproject.toml" || "$file" =~ ^crates/.*/pyproject\.toml$ ]] && python_config_changed=1 [[ "$file" =~ ^\.github/workflows/.*\.yml$ ]] && workflow_changed=1 [[ "$file" == ".github/workflows/build-release-binaries.yml" || "$file" == ".github/workflows/release.yml" ]] && release_workflow_changed=1 diff --git a/crates/uv-build/pyproject.toml b/crates/uv-build/pyproject.toml index daea2b2a66..af4a3f60f6 100644 --- a/crates/uv-build/pyproject.toml +++ b/crates/uv-build/pyproject.toml @@ -48,6 +48,7 @@ strip = true include = [ { path = "LICENSE-APACHE", format = "sdist" }, { path = "LICENSE-MIT", format = "sdist" }, + { path = "rust-toolchain.toml", format = "sdist" }, ] [tool.uv] diff --git a/crates/uv-build/rust-toolchain.toml b/crates/uv-build/rust-toolchain.toml new file mode 100644 index 0000000000..9cf4a67c47 --- /dev/null +++ b/crates/uv-build/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.94.1"