crosvm/msg_socket/Cargo.toml
Dylan Reid 72ccaefe0f msg_socket: Add async receiving of messages
Add a member to MsgSocket that effectively returns an async iterator
over messages received on the socket. This is done by setting the socket
as non-blocking and registering with the async infrastructure when the
socket would block.

This feature will be used by devices that wish to handle messages in an
async fn context.

Change-Id: I47c6e83922068820cd19ffd9ef604ed8a16b755e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1997243
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
2020-02-26 06:20:39 +00:00

13 lines
318 B
TOML

[package]
name = "msg_socket"
version = "0.1.0"
authors = ["The Chromium OS Authors"]
edition = "2018"
[dependencies]
cros_async = { path = "../cros_async" }
data_model = { path = "../data_model" }
futures = "*"
libc = "*"
msg_on_socket_derive = { path = "msg_on_socket_derive" }
sys_util = { path = "../sys_util" }