python-libcst/0001-set-cargo-vendor-cache-for-local-build.patch
2023-11-30 19:15:24 +08:00

30 lines
714 B
Diff

From 482bc883118609ac251b1ef496f61aec74fdedfd Mon Sep 17 00:00:00 2001
From: desert-sailor <dongxing.wang_a@thundersoft.com>
Date: Thu, 30 Nov 2023 19:12:15 +0800
Subject: [PATCH] set cargo vendor cache for local build
---
.cargo/config.toml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 59c989e..5f92489 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -8,4 +8,10 @@ rustflags = [
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
-]
\ No newline at end of file
+]
+
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "native/vendor"
--
2.41.0