Remove unneeded inline tables in Cargo.tomls (#27563)

This PR removes some unneeded inline tables from our `Cargo.toml`s.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-26 22:36:47 -04:00 committed by GitHub
parent 231e9c2000
commit af8acba353
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 21 additions and 21 deletions

View file

@ -5,15 +5,15 @@ index 9ba10e56ba..bb69440691 100644
@@ -41,10 +41,10 @@ serde_derive.workspace = true
telemetry.workspace = true
util.workspace = true
-[target.'cfg(target_os = "macos")'.dependencies]
+[target.'cfg(any())'.dependencies]
livekit_client_macos = { workspace = true }
livekit_client_macos.workspace = true
-[target.'cfg(not(target_os = "macos"))'.dependencies]
+[target.'cfg(all())'.dependencies]
livekit_client = { workspace = true }
livekit_client.workspace = true
[dev-dependencies]
diff --git a/crates/call/src/call.rs b/crates/call/src/call.rs
index 5e212d35b7..a8f9e8f43e 100644
@ -21,19 +21,19 @@ index 5e212d35b7..a8f9e8f43e 100644
+++ b/crates/call/src/call.rs
@@ -1,13 +1,13 @@
pub mod call_settings;
-#[cfg(target_os = "macos")]
+#[cfg(any())]
mod macos;
-#[cfg(target_os = "macos")]
+#[cfg(any())]
pub use macos::*;
-#[cfg(not(target_os = "macos"))]
+#[cfg(all())]
mod cross_platform;
-#[cfg(not(target_os = "macos"))]
+#[cfg(all())]
pub use cross_platform::*;
@ -45,15 +45,15 @@ index 1d17cfa145..f845234987 100644
-#[cfg(target_os = "macos")]
+#[cfg(any())]
mod macos;
-#[cfg(target_os = "macos")]
+#[cfg(any())]
pub use macos::*;
-#[cfg(not(target_os = "macos"))]
+#[cfg(all())]
mod cross_platform;
-#[cfg(not(target_os = "macos"))]
+#[cfg(all())]
pub use cross_platform::*;