From 482bc883118609ac251b1ef496f61aec74fdedfd Mon Sep 17 00:00:00 2001 From: desert-sailor 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