Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
remove numa features from crates not using it
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthDesai committed Jan 17, 2024
1 parent 2c57c53 commit ddd6f65
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 45 deletions.
12 changes: 4 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version = "0.1.0"
edition = "2021"

[dependencies]
sdk-dsn = { path = "dsn", default-features = false }
sdk-dsn = { path = "dsn" }
sdk-farmer = { path = "farmer", default-features = false }
sdk-node = { path = "node", default-features = false }
sdk-substrate = { path = "substrate", default-features = false }
sdk-utils = { path = "utils", default-features = false }
sdk-node = { path = "node" }
sdk-substrate = { path = "substrate" }
sdk-utils = { path = "utils" }
static_assertions = "1.1.0"

subspace-proof-of-space = { git = "https://github.com/subspace/subspace", rev = "bd435100200b3dcce6d6f50534d52e3cd039ca8e" }
Expand Down Expand Up @@ -153,10 +153,6 @@ members = [
default = ["numa"]
numa = [
"sdk-farmer/numa",
"sdk-dsn/numa",
"sdk-utils/numa",
"sdk-node/numa",
"sdk-substrate/numa"
]
integration-test = [
"sdk-utils/integration-test",
Expand Down
8 changes: 2 additions & 6 deletions dsn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ parking_lot = "0.12"
prometheus-client = "0.22.0"
sc-client-api = { version = "4.0.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
sc-consensus-subspace = { git = "https://github.com/subspace/subspace", rev = "bd435100200b3dcce6d6f50534d52e3cd039ca8e" }
sdk-utils = { path = "../utils", default-features = false }
sdk-utils = { path = "../utils" }
serde = { version = "1", features = ["derive"] }
sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
sp-runtime = { version = "24.0.0", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
Expand All @@ -24,11 +24,7 @@ subspace-networking = { git = "https://github.com/subspace/subspace", rev = "bd4
tracing = "0.1"

[features]
default = ["numa"]
numa = [
"subspace-farmer/numa",
"sdk-utils/numa"
]
default = []
integration-test = [
"sdk-utils/integration-test"
]
6 changes: 2 additions & 4 deletions farmer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ libmimalloc-sys = { version = "0.1.35", features = ["extended"] }
parking_lot = "0.12"
pin-project = "1"
rayon = "1.7.0"
sdk-traits = { path = "../traits", default-features = false }
sdk-utils = { path = "../utils", default-features = false }
sdk-traits = { path = "../traits" }
sdk-utils = { path = "../utils" }
serde = { version = "1", features = ["derive"] }
subspace-core-primitives = { git = "https://github.com/subspace/subspace", rev = "bd435100200b3dcce6d6f50534d52e3cd039ca8e" }
subspace-erasure-coding = { git = "https://github.com/subspace/subspace", rev = "bd435100200b3dcce6d6f50534d52e3cd039ca8e" }
Expand All @@ -37,8 +37,6 @@ tracing-futures = "0.2"
default = ["numa"]
numa = [
"subspace-farmer/numa",
"sdk-traits/numa",
"sdk-utils/numa"
]
integration-test = [
"sdk-utils/integration-test",
Expand Down
17 changes: 5 additions & 12 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ sc-subspace-chain-specs = { git = "https://github.com/subspace/subspace", rev =
sc-telemetry = { version = "4.0.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
sc-transaction-pool-api = { version = "4.0.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
sc-utils = { version = "4.0.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
sdk-dsn = { path = "../dsn", default-features = false }
sdk-substrate = { path = "../substrate", default-features = false }
sdk-traits = { path = "../traits", default-features = false }
sdk-utils = { path = "../utils", default-features = false }
sdk-dsn = { path = "../dsn" }
sdk-substrate = { path = "../substrate" }
sdk-traits = { path = "../traits" }
sdk-utils = { path = "../utils" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
Expand All @@ -67,14 +67,7 @@ tokio-stream = { version = "0.1", features = ["sync", "time"] }
tracing = "0.1"

[features]
default = ["numa"]
numa = [
"sdk-dsn/numa",
"sdk-traits/numa",
"sdk-utils/numa",
"sdk-substrate/numa",
"subspace-farmer/numa"
]
default = []
integration-test = [
"sdk-utils/integration-test",
"sdk-dsn/integration-test",
Expand Down
7 changes: 2 additions & 5 deletions substrate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,14 @@ sc-network = { version = "0.10.0-dev", git = "https://github.com/subspace/polkad
sc-service = { version = "0.10.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c", default-features = false }
sc-state-db = { version = "0.10.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
sc-storage-monitor = { version = "0.1.0", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c", default-features = false }
sdk-utils = { path = "../utils", default-features = false }
sdk-utils = { path = "../utils" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sp-runtime = { version = "24.0.0", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
tokio = { version = "1.34.0", features = ["fs", "rt", "tracing"] }

[features]
default = ["numa"]
numa = [
"sdk-utils/numa"
]
default = []
integration-test = [
"sdk-utils/integration-test"
]
8 changes: 2 additions & 6 deletions traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ edition = "2021"
async-trait = "0.1"
parking_lot = "0.12"
sc-client-api = { version = "4.0.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c" }
sdk-dsn = { path = "../dsn", default-features = false }
sdk-dsn = { path = "../dsn" }
subspace-core-primitives = { git = "https://github.com/subspace/subspace", rev = "bd435100200b3dcce6d6f50534d52e3cd039ca8e" }
subspace-farmer = { git = "https://github.com/subspace/subspace", rev = "bd435100200b3dcce6d6f50534d52e3cd039ca8e", default-features = false }
subspace-proof-of-space = { git = "https://github.com/subspace/subspace", rev = "bd435100200b3dcce6d6f50534d52e3cd039ca8e" }

[features]
default = ["numa"]
numa = [
"subspace-farmer/numa",
"sdk-dsn/numa"
]
default = []
integration-test = [
"sdk-dsn/integration-test"
]
5 changes: 1 addition & 4 deletions utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,5 @@ tokio = { version = "1.34.0", features = ["fs", "rt", "tracing", "macros", "park
tracing = "0.1"

[features]
default = ["numa"]
numa = [
"subspace-farmer/numa"
]
default = []
integration-test = []

0 comments on commit ddd6f65

Please sign in to comment.