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>
diff --git a/Cargo.toml b/Cargo.toml
index 917ea25..b5cb22d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,10 +21,13 @@
[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