summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kempin <denniskempin@google.com>2021-07-23 12:51:46 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-29 18:04:33 +0000
commitfff997dda0625bd6f7c33bc0d79653c91b41b6c7 (patch)
tree1e43055525256be34701de8af1833dcb20c97f80
parent3091854e27242d09453004b011f701fa29c0b8e8 (diff)
downloadvmm_vhost-fff997dda0625bd6f7c33bc0d79653c91b41b6c7.tar.gz
Update crosvm deps to use patch.crates-io for paths
This allows the crosvm workspace to provide the path to these crates while still keeping local cargo builds of just this crate working. BUG=b:194336213 TEST=cargo build here and in crosvm. This won't affect portage builds. Change-Id: I558bca9bf308d2404aabb660c074c231d19cfa09 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/rust-vmm/vhost/+/3049855 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Tested-by: Dennis Kempin <denniskempin@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com>
-rw-r--r--Cargo.toml9
1 files changed, 6 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 917ea25..b5cb22d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,10 +21,13 @@ vhost-user-slave = ["vhost-user"]
[dependencies]
bitflags = ">=1.0.1"
libc = ">=0.2.39"
-
-sys_util = { path = "../../../platform/crosvm/sys_util" } # provided by ebuild
-tempfile = { path = "../../../platform/crosvm/tempfile" } # provided by ebuild
+sys_util = "*"
+tempfile = "*"
vm-memory = { version = "0.2.0", optional = true }
[dev-dependencies]
vm-memory = { version = "0.2.0", features=["backend-mmap"] }
+
+[patch.crates-io]
+sys_util = { path = "../../../platform/crosvm/sys_util" } # ignored by ebuild
+tempfile = { path = "../../../platform/crosvm/tempfile" } # ignored by ebuild