mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
This CL enables serde based serialize and deserialize types to interact with a side-channel stash of descriptors. The idea is that many types could implement Serialize and Deserialize, but they have descriptors buried in them, such as a File or kernel object. Although these can be serialized literally, usually the transciever of the serialized value needs explicit access to the descriptors to send them over, such as with Unix domain sockets. TEST=cargo test -p base BUG=b:176847362 Cq-Depend: chromium:2757675 Change-Id: I3273889f8d43cca761a54c531a981b7ab1ad3c03 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2576633 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Zach Reizner <zachr@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
24 lines
652 B
TOML
24 lines
652 B
TOML
[package]
|
|
name = "sys_util"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2018"
|
|
include = ["src/**/*", "Cargo.toml"]
|
|
|
|
[dependencies]
|
|
data_model = { path = "../data_model" } # provided by ebuild
|
|
libc = "*"
|
|
poll_token_derive = { version = "*", path = "poll_token_derive" }
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
serde_json = "1"
|
|
sync = { path = "../sync" } # provided by ebuild
|
|
syscall_defines = { path = "../syscall_defines" } # provided by ebuild
|
|
tempfile = { path = "../tempfile" } # provided by ebuild
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
android_log-sys = "0.2"
|
|
|
|
[features]
|
|
chromeos = []
|
|
|
|
[workspace]
|