From d5a9552d72f160aa0fef91971c94f3e90a29493f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 9 Jan 2019 16:34:33 -0800 Subject: build: Restore ability to compile data_model and sys_util in isolation CL:1385972 breaks building these crates because they are not in the workspace of the top level Cargo.toml so the patch.crates-io setting of the top level Cargo.toml does not take effect. They end up looking for their dependencies on crates.io rather than in the parent directory. Being able to build just data_model and sys_util on their own is useful when iterating on a change in one of them and needing to run `cargo test` (as I tried to do today). The errors without this CL are like this: error: no matching package named `assertions` found location searched: registry `https://github.com/rust-lang/crates.io-index` required by package `data_model v0.1.0 (/path/to/crosvm/data_model)` BUG=chromium:916921 TEST=cargo check in data_model and sys_util TEST=cargo test as well TEST=emerge-amd64-generic crosvm TEST=FEATURES=test emerge-amd64-generic data_model, sys_util CQ-DEPEND=CL:1409854 Change-Id: I7bd34f38507c1cea72380f515ce2dd0835aec4fa Reviewed-on: https://chromium-review.googlesource.com/1403887 Commit-Ready: David Tolnay Tested-by: David Tolnay Tested-by: kokoro Reviewed-by: Chih-Yang Hsia --- sys_util/poll_token_derive/Cargo.toml | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys_util/poll_token_derive') diff --git a/sys_util/poll_token_derive/Cargo.toml b/sys_util/poll_token_derive/Cargo.toml index 7e7b424..4ec0c53 100644 --- a/sys_util/poll_token_derive/Cargo.toml +++ b/sys_util/poll_token_derive/Cargo.toml @@ -12,5 +12,3 @@ path = "poll_token_derive.rs" syn = "0.15" quote = "0.6" proc-macro2 = "0.4" - -[workspace] -- cgit 1.4.1