make linux deps conditional

This commit is contained in:
GroovieGermanikus 2024-12-04 15:17:15 +01:00
parent f11d9c8309
commit 7e92d43ce3
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
2 changed files with 8 additions and 4 deletions

View File

@ -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 }

View File

@ -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 }