From ab7ddc5a199e791fba44150ed56c14b6874dbce0 Mon Sep 17 00:00:00 2001 From: desert-sailor Date: Wed, 9 Aug 2023 14:50:41 +0800 Subject: [PATCH] set cargo vendor cache for local build --- .cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 7caf56d..07b7f6d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -10,3 +10,9 @@ rustflags = [ "-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup", ] + +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" -- 2.33.0