mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
fbb8137c0a
Add the minimal allow(dead_code) and feature declarations to allow the clippy checks to pass for Windows with Rust 1.81. BUG=b:365852007 TEST=tools/presubmit clippy_mingw64 Change-Id: I9ab776b07d8e9e14fe380d9b5ef1fa332788ff63 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6013080 Reviewed-by: Kaiyi Li <kaiyili@google.com> Reviewed-by: Noah Gold <nkgold@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
62 lines
1.7 KiB
TOML
62 lines
1.7 KiB
TOML
[package]
|
|
name = "gpu_display"
|
|
version = "0.1.0"
|
|
authors = ["The ChromiumOS Authors"]
|
|
edition = "2021"
|
|
|
|
[features]
|
|
x = []
|
|
kiwi = []
|
|
vulkan_display = [ "vulkano", "ash", "rand", "protos", "protobuf", "euclid", "smallvec"]
|
|
# Enables the GPU display backend for Android. The backend uses Android surface as the backing
|
|
# store.
|
|
android_display = []
|
|
# Stub implementation of the Android display backend. This is only used for building and testing the
|
|
# Android display backend on a non-Android target
|
|
android_display_stub = []
|
|
gfxstream = []
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
libc = "0.2"
|
|
base = { path = "../base" }
|
|
linux_input_sys = { path = "../linux_input_sys" }
|
|
remain = "0.2"
|
|
thiserror = "1"
|
|
cfg-if = "1"
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
vm_control = { path = "../vm_control", features = ["gpu"] }
|
|
zerocopy = { version = "0.7", features = ["derive"] }
|
|
vulkano = { version = "0.31.1", optional = true }
|
|
ash = { version = "0.37.0", optional = true }
|
|
rand = { version = "0.8.5", optional = true }
|
|
protos = { path = "../protos", optional = true }
|
|
protobuf = { version = "3.2", optional = true }
|
|
euclid = { version = "0.22", optional = true }
|
|
smallvec = { version = "1", optional = true }
|
|
sync = { path = "../common/sync" }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
cros_tracing = { path = "../cros_tracing" }
|
|
metrics = { path = "../metrics" }
|
|
num-traits = "0.2"
|
|
winapi = "0.3"
|
|
win_util = { path = "../win_util" }
|
|
smallvec = "1"
|
|
sync = { path = "../common/sync" }
|
|
euclid = "0.22"
|
|
|
|
[build-dependencies]
|
|
cc = "1.0.25"
|
|
pkg-config = "0.3.11"
|
|
cfg-if = "1.0.0"
|
|
which = "4"
|
|
|
|
[[example]]
|
|
name = "simple"
|
|
path = "examples/simple.rs"
|
|
|
|
[[example]]
|
|
name = "simple_open"
|
|
path = "examples/simple_open.rs"
|
|
required-features = ["x"]
|