diff --git a/crates/gpui/src/platform.rs b/crates/gpui/src/platform.rs index b7a76525796e22a007e376e96ab030db077ad074..a63271e7eadc978a0f94bf5deb9dc6f25c932c38 100644 --- a/crates/gpui/src/platform.rs +++ b/crates/gpui/src/platform.rs @@ -1,3 +1,6 @@ +// todo!(linux): remove +#![cfg_attr(target_os = "linux", allow(dead_code))] + mod app_menu; mod keystroke; #[cfg(target_os = "linux")] diff --git a/crates/gpui/src/platform/linux/dispatcher.rs b/crates/gpui/src/platform/linux/dispatcher.rs index 108b8ed354e4b693b2f7401667039ae8d6626ba3..8aa0631268ad6e9e5b6cdea51a9711891a585471 100644 --- a/crates/gpui/src/platform/linux/dispatcher.rs +++ b/crates/gpui/src/platform/linux/dispatcher.rs @@ -1,6 +1,8 @@ #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] +//todo!(linux): remove +#![allow(unused_variables)] use crate::{PlatformDispatcher, TaskLabel}; use async_task::Runnable; diff --git a/crates/gpui/src/platform/linux/text_system.rs b/crates/gpui/src/platform/linux/text_system.rs index 53faa936bc29b1ab766d58f09b94734003743b15..885a6b1736980aac6b47bf8ec92ae2d2e26670ce 100644 --- a/crates/gpui/src/platform/linux/text_system.rs +++ b/crates/gpui/src/platform/linux/text_system.rs @@ -1,18 +1,12 @@ +//todo!(linux) remove +#[allow(unused)] use crate::{ Bounds, DevicePixels, Font, FontId, FontMetrics, FontRun, GlyphId, LineLayout, Pixels, PlatformTextSystem, RenderGlyphParams, SharedString, Size, }; use anyhow::Result; use collections::HashMap; -use font_kit::{ - font::Font as FontKitFont, - handle::Handle, - hinting::HintingOptions, - metrics::Metrics, - properties::{Style as FontkitStyle, Weight as FontkitWeight}, - source::SystemSource, - sources::mem::MemSource, -}; +use font_kit::{font::Font as FontKitFont, source::SystemSource, sources::mem::MemSource}; use parking_lot::RwLock; use smallvec::SmallVec; use std::borrow::Cow; diff --git a/crates/gpui/src/platform/linux/window.rs b/crates/gpui/src/platform/linux/window.rs index ee38c0bd37cd063f1ffce3cf7f96d791d5e78d74..e88ebde029712897c968537b3091f15aa995bbf0 100644 --- a/crates/gpui/src/platform/linux/window.rs +++ b/crates/gpui/src/platform/linux/window.rs @@ -1,3 +1,6 @@ +//todo!(linux): remove +#![allow(unused)] + use super::BladeRenderer; use crate::{ Bounds, GlobalPixels, LinuxDisplay, Pixels, PlatformDisplay, PlatformInputHandler, diff --git a/crates/gpui/src/platform/mac/metal_renderer.rs b/crates/gpui/src/platform/mac/metal_renderer.rs index 13db1bfff1cd93a7040165b41eb67a99c00acbdc..1c071dec080f0ab3f108ee87dcdacc5ea4c71fb8 100644 --- a/crates/gpui/src/platform/mac/metal_renderer.rs +++ b/crates/gpui/src/platform/mac/metal_renderer.rs @@ -19,6 +19,9 @@ use parking_lot::Mutex; use smallvec::SmallVec; use std::{cell::Cell, ffi::c_void, mem, ptr, sync::Arc}; +// Exported to metal +pub(crate) type PointF = crate::Point; + #[cfg(not(feature = "runtime_shaders"))] const SHADERS_METALLIB: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/shaders.metallib")); #[cfg(feature = "runtime_shaders")] @@ -77,7 +80,7 @@ impl MetalRenderer { .new_library_with_data(SHADERS_METALLIB) .expect("error building metal library"); - fn to_float2_bits(point: crate::PointF) -> u64 { + fn to_float2_bits(point: PointF) -> u64 { let mut output = point.y.to_bits() as u64; output <<= 32; output |= point.x.to_bits() as u64; diff --git a/crates/gpui/src/scene.rs b/crates/gpui/src/scene.rs index f7c85cd6239475f4a0b44f5889f670ea958b0006..17cb25a12f343c6443d57f0f639218b45471da43 100644 --- a/crates/gpui/src/scene.rs +++ b/crates/gpui/src/scene.rs @@ -5,8 +5,6 @@ use crate::{ use collections::{BTreeMap, FxHashSet}; use std::{fmt::Debug, iter::Peekable, slice}; -// Exported to metal -pub(crate) type PointF = Point; #[allow(non_camel_case_types, unused)] pub(crate) type PathVertex_ScaledPixels = PathVertex; diff --git a/crates/live_kit_client/Cargo.toml b/crates/live_kit_client/Cargo.toml index f6ae36c93547b347c8154b92b9a682eea27be524..d004e18bc1a8dddd12b6482c8ee553fb47fc92de 100644 --- a/crates/live_kit_client/Cargo.toml +++ b/crates/live_kit_client/Cargo.toml @@ -44,6 +44,7 @@ async-trait = { workspace = true } collections = { workspace = true, features = ["test-support"] } gpui = { workspace = true, features = ["test-support"] } live_kit_server.workspace = true +nanoid = "0.4" [dev-dependencies] anyhow.workspace = true diff --git a/crates/zed/src/languages/purescript.rs b/crates/zed/src/languages/purescript.rs index bdf55f1b9381cb0c0b9104bf72964a67c292835e..150f1546331d1a8ced644f67c67a25c4faa62a5e 100644 --- a/crates/zed/src/languages/purescript.rs +++ b/crates/zed/src/languages/purescript.rs @@ -26,6 +26,8 @@ pub struct PurescriptLspAdapter { } impl PurescriptLspAdapter { + // todo!(linux): remove + #[cfg_attr(target_os = "linux", allow(dead_code))] pub fn new(node: Arc) -> Self { Self { node } }