base: move Windows-only deps into the target section

chrono, rand, and regex are only needed in the Windows parts of base for
now; remove them from the common dependencies so we don't need to
compile them for Linux builds.

BUG=None
TEST=cargo build --timings

Change-Id: Ib62d8e9c71860a4e924a05c8453c6bd54ba7ecf8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3579725
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2022-04-08 13:27:23 -07:00 committed by Chromeos LUCI
parent f620437e8b
commit 772a28edca

View file

@ -20,12 +20,12 @@ thiserror = "1.0.20"
tempfile = "3" tempfile = "3"
base_poll_token_derive = { path = "base_poll_token_derive" } base_poll_token_derive = { path = "base_poll_token_derive" }
cfg-if = "*" cfg-if = "*"
rand = "*"
chrono = "*"
regex = "*"
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
chrono = "*"
lazy_static = "*" lazy_static = "*"
rand = "*"
regex = "*"
winapi = "*" winapi = "*"
win_util = { path = "../win_util"} win_util = { path = "../win_util"}