52 lines
1.5 KiB
Diff
52 lines
1.5 KiB
Diff
|
|
From 8ff987b291cbf284329777ddda89bdb9f118266b Mon Sep 17 00:00:00 2001
|
||
|
|
From: Vanient <xiadanni1@huawei.com>
|
||
|
|
Date: Thu, 24 Aug 2023 15:01:38 +0800
|
||
|
|
Subject: [PATCH] add toml to use vendor
|
||
|
|
|
||
|
|
Signed-off-by: Vanient <xiadanni1@huawei.com>
|
||
|
|
---
|
||
|
|
vmm/sandbox/.cargo/config.toml | 14 ++++++++++++++
|
||
|
|
vmm/task/.cargo/config.toml | 9 +++++++++
|
||
|
|
2 files changed, 23 insertions(+)
|
||
|
|
create mode 100644 vmm/sandbox/.cargo/config.toml
|
||
|
|
create mode 100644 vmm/task/.cargo/config.toml
|
||
|
|
|
||
|
|
diff --git a/vmm/sandbox/.cargo/config.toml b/vmm/sandbox/.cargo/config.toml
|
||
|
|
new file mode 100644
|
||
|
|
index 00000000..148c98af
|
||
|
|
--- /dev/null
|
||
|
|
+++ b/vmm/sandbox/.cargo/config.toml
|
||
|
|
@@ -0,0 +1,14 @@
|
||
|
|
+[source.crates-io]
|
||
|
|
+replace-with = "vendored-sources"
|
||
|
|
+
|
||
|
|
+[source."git+https://github.com/cloud-hypervisor/cloud-hypervisor.git"]
|
||
|
|
+git = "https://github.com/cloud-hypervisor/cloud-hypervisor.git"
|
||
|
|
+replace-with = "vendored-sources"
|
||
|
|
+
|
||
|
|
+[source."git+https://github.com/kuasar-io/rust-extensions.git"]
|
||
|
|
+git = "https://github.com/kuasar-io/rust-extensions.git"
|
||
|
|
+replace-with = "vendored-sources"
|
||
|
|
+
|
||
|
|
+[source.vendored-sources]
|
||
|
|
+directory = "vendor"
|
||
|
|
+
|
||
|
|
diff --git a/vmm/task/.cargo/config.toml b/vmm/task/.cargo/config.toml
|
||
|
|
new file mode 100644
|
||
|
|
index 00000000..c7f73e86
|
||
|
|
--- /dev/null
|
||
|
|
+++ b/vmm/task/.cargo/config.toml
|
||
|
|
@@ -0,0 +1,9 @@
|
||
|
|
+[source.crates-io]
|
||
|
|
+replace-with = "vendored-sources"
|
||
|
|
+
|
||
|
|
+[source."git+https://github.com/kuasar-io/rust-extensions.git"]
|
||
|
|
+git = "https://github.com/kuasar-io/rust-extensions.git"
|
||
|
|
+replace-with = "vendored-sources"
|
||
|
|
+
|
||
|
|
+[source.vendored-sources]
|
||
|
|
+directory = "vendor"
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|