mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
68bbe92339
Major changes: * Adds Windows implementations * Refactors cros_async to use the styleguide for cross platform code. * Adds platform specific Descriptor impls to Timer & Event (short term; this will go away in the next CL in the series). Minor adjustments: * The doctests for the Executor were passing the wrong type of seek parameter to write_from_vec. It was disabling seeking (None) when it should have been seeking to zero (Some(0)). BUG=b:213147081 TEST=tested by Windows & Linux bots. Change-Id: Id7e025ceb9f1be4a165de1e9ba824cf60dd076ff Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3579735 Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Noah Gold <nkgold@google.com>
45 lines
1 KiB
TOML
45 lines
1 KiB
TOML
[package]
|
|
name = "cros_async"
|
|
version = "0.1.1"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
async-trait = "0.1.36"
|
|
async-task = "4"
|
|
cfg-if = "1.0.0"
|
|
data_model = { path = "../common/data_model" } # provided by ebuild
|
|
intrusive-collections = "0.9"
|
|
libc = "*"
|
|
once_cell = "1.7.2"
|
|
paste = "1.0"
|
|
pin-utils = "0.1.0-alpha.4"
|
|
remain = "0.2"
|
|
slab = "0.4"
|
|
sync = { path = "../common/sync" } # provided by ebuild
|
|
base = { path = "../base" } # provided by ebuild
|
|
thiserror = "1.0.20"
|
|
audio_streams = { path = "../common/audio_streams" } # provided by ebuild
|
|
anyhow = "1.0"
|
|
serde = "*"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
io_uring = { path = "../io_uring" } # provided by ebuild
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = "*"
|
|
win_util = { path = "../win_util" }
|
|
smallvec = "*"
|
|
|
|
[dependencies.futures]
|
|
version = "*"
|
|
default-features = false
|
|
features = ["alloc"]
|
|
|
|
[dev-dependencies]
|
|
futures = { version = "*", features = ["executor"] }
|
|
futures-executor = { version = "0.3", features = ["thread-pool"] }
|
|
futures-util = "0.3"
|
|
tempfile = "3"
|
|
|
|
|