mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-30 16:09:39 +00:00
25c6bc137e
Using an enum implementing PollToken is the recommended way to use PollContext, but writing the trait impls for each enum is mechanical yet error prone. This is a perfect candidate for a custom derive, which automates away the process using a simple derive attribute on an enum. BUG=chromium:816692 TEST=cargo test -p sys_util Change-Id: If21d0f94f9af4b4f6cef1f24c78fc36b50471053 Reviewed-on: https://chromium-review.googlesource.com/940865 Commit-Ready: Zach Reizner <zachr@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
14 lines
309 B
TOML
14 lines
309 B
TOML
[package]
|
|
name = "sys_util"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
data_model = { path = "../data_model" }
|
|
libc = "*"
|
|
syscall_defines = { path = "../syscall_defines" }
|
|
poll_token_derive = { path = "poll_token_derive" }
|
|
|
|
[build-dependencies]
|
|
gcc = "=0.3.54"
|