From 7e92d43ce36528258de880828e0d6a6912dd55ed Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Wed, 4 Dec 2024 15:17:15 +0100 Subject: [PATCH] make linux deps conditional --- blocking_client/Cargo.toml | 5 ++++- server/Cargo.toml | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/blocking_client/Cargo.toml b/blocking_client/Cargo.toml index dfc2626..6e6af64 100644 --- a/blocking_client/Cargo.toml +++ b/blocking_client/Cargo.toml @@ -6,7 +6,6 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] - solana-sdk = { workspace = true } anyhow = { workspace = true } log = { workspace = true } @@ -19,6 +18,10 @@ quiche = { workspace = true } mio = { workspace = true } mio_channel = { workspace = true } +[target.'cfg(linux)'.dependencies] +libc = "0.2" +nix = { version = "0.27", features = ["net", "socket", "uio"] } + [dev-dependencies] rand = { workspace = true } tracing-subscriber = { workspace = true } diff --git a/server/Cargo.toml b/server/Cargo.toml index ce3b669..81c3677 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -21,13 +21,14 @@ boring = { workspace = true } mio = { workspace = true } mio_channel = { workspace = true } -libc = "0.2" -nix = { version = "0.27", features = ["net", "socket", "uio"] } - quic-geyser-common = { workspace = true } prometheus = { workspace = true } lazy_static = { workspace = true } +[target.'cfg(linux)'.dependencies] +libc = "0.2" +nix = { version = "0.27", features = ["net", "socket", "uio"] } + [dev-dependencies] rand = { workspace = true } tracing-subscriber = { workspace = true } \ No newline at end of file