mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
b3fca20e24
Instead of creating IoSourceExt from AsRawFd implementers, we've switched to creating from a marker trait `IntoAsync`. This lets us use other types like RawDescriptor easily with this crate. By using the marker, we also provide some type safety by requiring consumers of IoSourceExt to declare that their type is expected to work with async operations. This way we can provide stronger guarantees that an async IO trait object will behave in a reasonable way. This CL also purges the cros_async -> base and io_uring -> base references, and provides the base types needed to add new async primitives to base. BUG=none TEST=builds Change-Id: I0b0ce6ca7938b22ae8e8fb4e604439f0292678f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2504481 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Noah Gold <nkgold@google.com> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
15 lines
283 B
TOML
15 lines
283 B
TOML
[package]
|
|
name = "io_uring"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
libc = "*"
|
|
syscall_defines = { path = "../syscall_defines" }
|
|
sys_util = { path = "../sys_util" }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { path = "../tempfile" }
|
|
|
|
[workspace]
|