mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
3893a1dcbe
Define `SharedMemory` trait, implement it for `base::SharedMemory`, and use it for `ShmStreamSource::new_stream()` so that we can pass on `base::SharedMemory` without exposing `base` to libcras. Note that we implement the trait for `base::SharedMemory` in `base` crate instead of in `audio_streams`, which means `base` depends on `audio_streams`, because `audio_streams` is available for non-crosvm projects while `base` isn't. The corresponding CRAS change is crrev.com/c/3251123. BUG=b:194137301, b:204444445 TEST=cargo test --all-features Change-Id: I2430d9881d98032592c9f9202d70deb22e006f63 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3251820 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
18 lines
424 B
TOML
18 lines
424 B
TOML
[package]
|
|
name = "audio_streams"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2018"
|
|
|
|
[lib]
|
|
path = "src/audio_streams.rs"
|
|
|
|
[dependencies]
|
|
async-trait = "0.1.36"
|
|
cros_async = { path = "../cros_async" } # provided by ebuild
|
|
remain = "0.2"
|
|
sync = { path = "../sync" } # provided by ebuild
|
|
thiserror = "1.0.20"
|
|
|
|
[target.'cfg(unix)'.dev-dependencies]
|
|
sys_util = { path = "../sys_util" } # provided by ebuild
|