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>
21 lines
482 B
TOML
21 lines
482 B
TOML
[package]
|
|
name = "base"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
chromeos = ["sys_util/chromeos"]
|
|
|
|
[dependencies]
|
|
audio_streams = { path = "../audio_streams" }
|
|
cros_async = { path = "../cros_async" }
|
|
data_model = { path = "../data_model" }
|
|
libc = "*"
|
|
remain = "0.2"
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
serde_json = "*"
|
|
smallvec = "1.6.1"
|
|
sync = { path = "../sync" }
|
|
sys_util = { path = "../sys_util" }
|
|
thiserror = "1.0.20"
|