42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From ea4692d3383fe2f9a49c980009a81d3042703bfa Mon Sep 17 00:00:00 2001
|
|
From: desert-sailor <dxwangk@isoftstone.com>
|
|
Date: Wed, 5 Jul 2023 09:17:51 +0800
|
|
Subject: [PATCH] set cargo vendor cache for local build
|
|
|
|
---
|
|
.cargo/config.toml | 21 +++++++++++++++++++++
|
|
1 file changed, 21 insertions(+)
|
|
|
|
diff --git a/.cargo/config.toml b/.cargo/config.toml
|
|
index d6ef99b..52e065b 100644
|
|
--- a/.cargo/config.toml
|
|
+++ b/.cargo/config.toml
|
|
@@ -35,3 +35,24 @@ rustflags = [
|
|
"-Wclippy::rest_pat_in_fully_bound_structs",
|
|
"-Wunreachable_pub"
|
|
]
|
|
+
|
|
+[source.crates-io]
|
|
+replace-with = "vendored-sources"
|
|
+
|
|
+[source."git+https://github.com/astral-sh/RustPython-Parser.git?rev=c174bbf1f29527edd43d432326327f16f47ab9e0"]
|
|
+git = "https://github.com/astral-sh/RustPython-Parser.git"
|
|
+rev = "c174bbf1f29527edd43d432326327f16f47ab9e0"
|
|
+replace-with = "vendored-sources"
|
|
+
|
|
+[source."git+https://github.com/charliermarsh/LibCST?rev=80e4c1399f95e5beb532fdd1e209ad2dbb470438"]
|
|
+git = "https://github.com/charliermarsh/LibCST"
|
|
+rev = "80e4c1399f95e5beb532fdd1e209ad2dbb470438"
|
|
+replace-with = "vendored-sources"
|
|
+
|
|
+[source."git+https://github.com/youknowone/unicode_names2.git?rev=4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde"]
|
|
+git = "https://github.com/youknowone/unicode_names2.git"
|
|
+rev = "4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde"
|
|
+replace-with = "vendored-sources"
|
|
+
|
|
+[source.vendored-sources]
|
|
+directory = "vendor"
|
|
--
|
|
2.33.0
|
|
|