From ecf4955899c97b44d57c21de58c33e684d35ba79 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Tue, 30 Jan 2024 21:37:54 -0800 Subject: [PATCH] hide MacOS dependencie of live_kit_client and media --- crates/live_kit_client/Cargo.toml | 8 +++++++- crates/media/Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/live_kit_client/Cargo.toml b/crates/live_kit_client/Cargo.toml index 32c180c48c..3aeba54af0 100644 --- a/crates/live_kit_client/Cargo.toml +++ b/crates/live_kit_client/Cargo.toml @@ -52,7 +52,6 @@ block = "0.1" byteorder = "1.4" bytes = "1.2" collections = { path = "../collections", features = ["test-support"] } -foreign-types = "0.3" futures.workspace = true gpui = { path = "../gpui", features = ["test-support"] } hmac = "0.12" @@ -66,6 +65,13 @@ serde_derive.workspace = true sha2 = "0.10" simplelog = "0.9" +[target.'cfg(target_os = "macos")'.dev-dependencies] +cocoa = "0.25" +core-foundation = "0.9.3" +core-graphics = "0.22.3" +foreign-types = "0.3" +objc = "0.2" + [build-dependencies] serde.workspace = true serde_derive.workspace = true diff --git a/crates/media/Cargo.toml b/crates/media/Cargo.toml index 351ae37252..bb9751e9da 100644 --- a/crates/media/Cargo.toml +++ b/crates/media/Cargo.toml @@ -13,10 +13,10 @@ doctest = false anyhow.workspace = true block = "0.1" bytes = "1.2" -foreign-types = "0.3" [target.'cfg(target_os = "macos")'.dependencies] core-foundation = "0.9.3" +foreign-types = "0.3" metal = "0.21.0" objc = "0.2"