linux: various fixes across the crates to make it compile

This commit is contained in:
Dzmitry Malyshau 2024-02-03 00:06:20 -08:00
parent 7c7aad5e76
commit 2e32f5867e
7 changed files with 11 additions and 9 deletions

View file

@ -19,7 +19,7 @@ test-support = [
"collections/test-support",
"gpui/test-support",
"live_kit_server",
"nanoid",
#"nanoid",
]
[dependencies]
@ -32,7 +32,7 @@ gpui = { path = "../gpui", optional = true }
live_kit_server = { path = "../live_kit_server", optional = true }
log.workspace = true
media = { path = "../media" }
nanoid = { version ="0.4", optional = true}
nanoid = "0.4" #TODO: optional
parking_lot.workspace = true
postage.workspace = true

View file

@ -3,7 +3,7 @@ use anyhow::{anyhow, Context, Result};
use async_trait::async_trait;
use collections::{BTreeMap, HashMap, HashSet};
use futures::Stream;
use gpui::BackgroundExecutor;
use gpui::{BackgroundExecutor, ImageSource};
use live_kit_server::{proto, token};
#[cfg(target_os = "macos")]
use media::core_video::CVImageBuffer;
@ -846,8 +846,7 @@ impl Frame {
self.height
}
#[cfg(target_os = "macos")]
pub fn image(&self) -> CVImageBuffer {
pub fn image(&self) -> ImageSource {
unimplemented!("you can't call this in test mode")
}
}