crosvm/system_api/Cargo.toml
Daniel Verkamp fa159ee24a devices: virtio-fs: enable dbus crate stdfd feature
"stdfd" replaces the dbus::arg::OwnedFd type with the OwnedFd from the
standard library (std::os::fd::OwnedFd), which allows safe conversion.

Also use SafeDescriptor::try_from() to clone the descriptor rather than
base::clone_descriptor(), which returns an unmanaged RawDescriptor.

BUG=b:327639547

Change-Id: Ifa1e6b783217e946c027e4db9a6202b39c92936e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5354030
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-03-08 22:14:51 +00:00

12 lines
282 B
TOML

[package]
name = "system_api"
version = "0.1.0"
authors = ["The ChromiumOS Authors"]
edition = "2021"
[lib]
path = "src/system_api.rs"
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
dbus = { version = "0.9.7", features = ["stdfd"] }
protobuf = "3.2"