python-ruff/0001-set-cargo-vendor-cache-for-local-build.patch
desert-sailor 35cd8ff6be Update package to version 0.7.0
(cherry picked from commit a7de6d440d04118cb6bbf86fac0f88ff8d4e1cb1)
2024-12-06 17:43:45 +08:00

35 lines
1020 B
Diff

From c7b9fffc06b204d983138d4efda3741980d74145 Mon Sep 17 00:00:00 2001
From: desert-sailor <dongxing.wang_a@thundersoft.com>
Date: Thu, 24 Oct 2024 11:14:16 +0800
Subject: [PATCH] set cargo vendor cache for local build
---
.cargo/config.toml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 .cargo/config.toml
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 0000000..8d5f9f2
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,15 @@
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source."git+https://github.com/astral-sh/lsp-types.git?rev=3512a9f"]
+git = "https://github.com/astral-sh/lsp-types.git"
+rev = "3512a9f"
+replace-with = "vendored-sources"
+
+[source."git+https://github.com/salsa-rs/salsa.git?rev=b14be5c0392f4c55eca60b92e457a35549372382"]
+git = "https://github.com/salsa-rs/salsa.git"
+rev = "b14be5c0392f4c55eca60b92e457a35549372382"
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "vendor"
--
2.43.0