Feature-gate CPU pinning, since it only works on Linux

This commit is contained in:
Joakim Frostegård 2021-11-09 11:40:16 +01:00
parent c90c82fb5c
commit 4f8328b70a
22 changed files with 77 additions and 19 deletions

View file

@ -10,11 +10,13 @@ repository = "https://github.com/greatest-ape/aquatic"
[lib]
name = "aquatic_common"
[features]
cpu-pinning = ["affinity"]
[dependencies]
ahash = "0.7"
anyhow = "1"
arc-swap = "1"
affinity = "0.1"
hashbrown = "0.11.2"
hex = "0.4"
indexmap-amortized = "1"
@ -22,3 +24,5 @@ log = "0.4"
privdrop = "0.5"
rand = { version = "0.8", features = ["small_rng"] }
serde = { version = "1", features = ["derive"] }
affinity = { version = "0.1", optional = true }