From 2ce3fc96e864c304bb6264e52924a32c418a4202 Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Thu, 17 Sep 2026 08:04:39 +0000 Subject: [PATCH] Move `corgi-patches` into `tooling` (#64292) That seems like a better place for this to live as opposed to the top-level namespace Release Notes: - N/A --- Cargo.toml | 2 +- nix/build.nix | 8 ++++---- .../corgi/patches}/scratch/Cargo.toml | 0 .../corgi/patches}/scratch/LICENSE-APACHE | 0 {corgi-patches => tooling/corgi/patches}/scratch/build.rs | 0 .../corgi/patches}/scratch/src/lib.rs | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename {corgi-patches => tooling/corgi/patches}/scratch/Cargo.toml (100%) rename {corgi-patches => tooling/corgi/patches}/scratch/LICENSE-APACHE (100%) rename {corgi-patches => tooling/corgi/patches}/scratch/build.rs (100%) rename {corgi-patches => tooling/corgi/patches}/scratch/src/lib.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index c47feca207..98bd4affd7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1023,7 +1023,7 @@ webrtc-sys = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev # needs symlink support that Windows CI lacks). webrtc-sys is self-contained, so # per-crate scratch dirs are sufficient. Upstream issue: # https://github.com/dtolnay/cxx/issues/1752 -scratch = { path = "corgi-patches/scratch" } +scratch = { path = "tooling/corgi/patches/scratch" } [profile.dev] split-debuginfo = "unpacked" diff --git a/nix/build.nix b/nix/build.nix index 8abca4066a..a3608f5896 100644 --- a/nix/build.nix +++ b/nix/build.nix @@ -67,7 +67,6 @@ let relPath = lib.removePrefix root path; topLevelIncludes = [ "crates" - "corgi-patches" "assets" "extensions" "script" @@ -81,7 +80,7 @@ let builtins.elem firstComp topLevelIncludes; corgiPatches = builtins.path { - path = ../corgi-patches; + path = ../tooling/corgi/patches; name = "corgi-patches"; }; craneLib = crane.overrideToolchain rustToolchain; @@ -318,8 +317,9 @@ let # `scratch` is a local dependency of `cxx-build`, so its API is needed # while Crane builds third-party dependencies. extraDummyScript = '' - rm -rf $out/corgi-patches - cp --recursive ${corgiPatches} $out/corgi-patches + rm -rf $out/tooling/corgi/patches + mkdir -p $out/tooling/corgi + cp --recursive ${corgiPatches} $out/tooling/corgi/patches ''; }; } diff --git a/corgi-patches/scratch/Cargo.toml b/tooling/corgi/patches/scratch/Cargo.toml similarity index 100% rename from corgi-patches/scratch/Cargo.toml rename to tooling/corgi/patches/scratch/Cargo.toml diff --git a/corgi-patches/scratch/LICENSE-APACHE b/tooling/corgi/patches/scratch/LICENSE-APACHE similarity index 100% rename from corgi-patches/scratch/LICENSE-APACHE rename to tooling/corgi/patches/scratch/LICENSE-APACHE diff --git a/corgi-patches/scratch/build.rs b/tooling/corgi/patches/scratch/build.rs similarity index 100% rename from corgi-patches/scratch/build.rs rename to tooling/corgi/patches/scratch/build.rs diff --git a/corgi-patches/scratch/src/lib.rs b/tooling/corgi/patches/scratch/src/lib.rs similarity index 100% rename from corgi-patches/scratch/src/lib.rs rename to tooling/corgi/patches/scratch/src/lib.rs