mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
33d5aa219a
This change enables clippy builds of android specific code. Doing so without adding the full Android SDK into our container is a bit hacky. The CL https://crrev.com/c/5671653 adds env variables to the minijail build.rs to allow us to skip building the library, and generate bindings for linux instead of android. This allow us to build all non-gpu related features of the android build. It will not link, but it will run clippy. This CL fixes various clippy issues that come up in this new configuration BUG=b:349907813 TEST=tools/clippy -p android TEST=tools/presubmit clippy_android Change-Id: I1f51d383051bbeeeff55d716feb7b56c3e24588b Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5672567 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Dennis Kempin <denniskempin@google.com>
43 lines
1.1 KiB
TOML
43 lines
1.1 KiB
TOML
[package]
|
|
name = "base"
|
|
version = "0.1.0"
|
|
authors = ["The ChromiumOS Authors"]
|
|
edition = "2021"
|
|
|
|
[features]
|
|
proto_tube = ["protobuf"]
|
|
seccomp_trace = []
|
|
|
|
[dependencies]
|
|
audio_streams = { path = "../common/audio_streams" } # provided by ebuild
|
|
base_event_token_derive = { path = "base_event_token_derive" }
|
|
sync = { path = "../common/sync" } # provided by ebuild
|
|
|
|
cfg-if = "1"
|
|
chrono = { version = "0.4.34", features = ["now"], default-features = false }
|
|
env_logger = { version = "0.9.0", default-features = false }
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
once_cell = "1.7"
|
|
protobuf = { version = "3.2", optional = true }
|
|
remain = "0.2"
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
serde_json = "1"
|
|
smallvec = "1.6.1"
|
|
thiserror = "1.0.20"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
zerocopy = { version = "0.7", features = ["derive"] }
|
|
|
|
[dev-dependencies]
|
|
protos = { path = "../protos", features = ["composite-disk"] }
|
|
tempfile = "3"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
futures = { version = "0.3" }
|
|
protobuf = "3.2"
|
|
rand = "0.8"
|
|
winapi = "0.3"
|
|
win_util = { path = "../win_util"}
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
android_log-sys = "0.3.1"
|