From e8e50aeb89bc96fd01d7b2eb914f44c496f12617 Mon Sep 17 00:00:00 2001 From: yuvald-sweet-security Date: Thu, 19 Dec 2024 16:58:35 +0200 Subject: [PATCH] Add empty workspace to Cargo.toml This fixes an issue that arises when the package is installed with pre-commit into a cache directory that is itself a subdirectory of a Cargo workspace, making Cargo think it's a package that should have been a part of the parent workspace. --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index aa664a46..97288f28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -156,3 +156,5 @@ opt-level = 3 [profile.dev.package.similar] opt-level = 3 + +[workspace]