python-libcst/0001-set-cargo-vendor-cache-for-local-build.patch

30 lines
714 B
Diff
Raw Normal View History

2023-11-30 19:15:24 +08:00
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
2023-06-30 13:35:40 +08:00
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
2023-11-30 19:15:24 +08:00
index 59c989e..5f92489 100644
2023-06-30 13:35:40 +08:00
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -8,4 +8,10 @@ rustflags = [
2023-11-30 19:15:24 +08:00
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
2023-06-30 13:35:40 +08:00
-]
\ No newline at end of file
2023-11-30 19:15:24 +08:00
+]
+
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "native/vendor"
2023-06-30 13:35:40 +08:00
--
2023-11-30 19:15:24 +08:00
2.41.0
2023-06-30 13:35:40 +08:00