mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
Feature-gate CPU pinning, since it only works on Linux
This commit is contained in:
parent
c90c82fb5c
commit
4f8328b70a
22 changed files with 77 additions and 19 deletions
|
|
@ -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 }
|
||||
|
|
@ -5,6 +5,7 @@ use ahash::RandomState;
|
|||
use rand::Rng;
|
||||
|
||||
pub mod access_list;
|
||||
#[cfg(feature = "cpu-pinning")]
|
||||
pub mod cpu_pinning;
|
||||
pub mod privileges;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue