mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 12:28:24 +00:00
Move dependencies to workspace (#4650)
## Issue Addressed Synchronize dependencies and edition on the workspace `Cargo.toml` ## Proposed Changes with https://github.com/rust-lang/cargo/issues/8415 merged it's now possible to synchronize details on the workspace `Cargo.toml` like the metadata and dependencies. By only having dependencies that are shared between multiple crates aligned on the workspace `Cargo.toml` it's easier to not miss duplicate versions of the same dependency and therefore ease on the compile times. ## Additional Info this PR also removes the no longer required direct dependency of the `serde_derive` crate. should be reviewed after https://github.com/sigp/lighthouse/pull/4639 get's merged. closes https://github.com/sigp/lighthouse/issues/4651 Co-authored-by: Michael Sproul <michael@sigmaprime.io> Co-authored-by: Michael Sproul <micsproul@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
name = "lighthouse"
|
||||
version = "4.4.1"
|
||||
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
||||
edition = "2021"
|
||||
edition = { workspace = true }
|
||||
autotests = false
|
||||
rust-version = "1.69.0"
|
||||
|
||||
@@ -28,45 +28,45 @@ slasher-lmdb = ["slasher/lmdb"]
|
||||
jemalloc = ["malloc_utils/jemalloc"]
|
||||
|
||||
[dependencies]
|
||||
beacon_node = { "path" = "../beacon_node" }
|
||||
slog = { version = "2.5.2", features = ["max_level_trace"] }
|
||||
sloggers = { version = "2.1.1", features = ["json"] }
|
||||
types = { "path" = "../consensus/types" }
|
||||
bls = { path = "../crypto/bls" }
|
||||
ethereum_hashing = "1.0.0-beta.2"
|
||||
clap = "2.33.3"
|
||||
env_logger = "0.9.0"
|
||||
environment = { path = "./environment" }
|
||||
beacon_node = { workspace = true }
|
||||
slog = { workspace = true }
|
||||
sloggers = { workspace = true }
|
||||
types = { workspace = true }
|
||||
bls = { workspace = true }
|
||||
ethereum_hashing = { workspace = true }
|
||||
clap = { workspace = true }
|
||||
env_logger = { workspace = true }
|
||||
environment = { workspace = true }
|
||||
boot_node = { path = "../boot_node" }
|
||||
futures = "0.3.7"
|
||||
validator_client = { "path" = "../validator_client" }
|
||||
futures = { workspace = true }
|
||||
validator_client = { workspace = true }
|
||||
account_manager = { "path" = "../account_manager" }
|
||||
clap_utils = { path = "../common/clap_utils" }
|
||||
eth2_network_config = { path = "../common/eth2_network_config" }
|
||||
lighthouse_version = { path = "../common/lighthouse_version" }
|
||||
account_utils = { path = "../common/account_utils" }
|
||||
lighthouse_metrics = { path = "../common/lighthouse_metrics" }
|
||||
lazy_static = "1.4.0"
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
serde_json = "1.0.59"
|
||||
serde_yaml = "0.8.13"
|
||||
task_executor = { path = "../common/task_executor" }
|
||||
malloc_utils = { path = "../common/malloc_utils" }
|
||||
directory = { path = "../common/directory" }
|
||||
unused_port = { path = "../common/unused_port" }
|
||||
clap_utils = { workspace = true }
|
||||
eth2_network_config = { workspace = true }
|
||||
lighthouse_version = { workspace = true }
|
||||
account_utils = { workspace = true }
|
||||
lighthouse_metrics = { workspace = true }
|
||||
lazy_static = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
serde_yaml = { workspace = true }
|
||||
task_executor = { workspace = true }
|
||||
malloc_utils = { workspace = true }
|
||||
directory = { workspace = true }
|
||||
unused_port = { workspace = true }
|
||||
database_manager = { path = "../database_manager" }
|
||||
slasher = { path = "../slasher" }
|
||||
slasher = { workspace = true }
|
||||
validator_manager = { path = "../validator_manager" }
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3.1.0"
|
||||
validator_dir = { path = "../common/validator_dir" }
|
||||
slashing_protection = { path = "../validator_client/slashing_protection" }
|
||||
lighthouse_network = { path = "../beacon_node/lighthouse_network" }
|
||||
sensitive_url = { path = "../common/sensitive_url" }
|
||||
eth1 = { path = "../beacon_node/eth1" }
|
||||
eth2 = { path = "../common/eth2" }
|
||||
beacon_processor = { path = "../beacon_node/beacon_processor" }
|
||||
tempfile = { workspace = true }
|
||||
validator_dir = { workspace = true }
|
||||
slashing_protection = { workspace = true }
|
||||
lighthouse_network = { workspace = true }
|
||||
sensitive_url = { workspace = true }
|
||||
eth1 = { workspace = true }
|
||||
eth2 = { workspace = true }
|
||||
beacon_processor = { workspace = true }
|
||||
|
||||
[[test]]
|
||||
name = "lighthouse_tests"
|
||||
|
||||
@@ -2,23 +2,23 @@
|
||||
name = "environment"
|
||||
version = "0.1.2"
|
||||
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
||||
edition = "2021"
|
||||
edition = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
tokio = { version = "1.14.0", features = ["macros", "rt", "rt-multi-thread", "signal" ] }
|
||||
slog = { version = "2.5.2", features = ["max_level_trace"] }
|
||||
sloggers = { version = "2.1.1", features = ["json"] }
|
||||
types = { path = "../../consensus/types" }
|
||||
eth2_config = { path = "../../common/eth2_config" }
|
||||
task_executor = { path = "../../common/task_executor" }
|
||||
eth2_network_config = { path = "../../common/eth2_network_config" }
|
||||
logging = { path = "../../common/logging" }
|
||||
slog-term = "2.6.0"
|
||||
slog-async = "2.5.0"
|
||||
futures = "0.3.7"
|
||||
tokio = { workspace = true }
|
||||
slog = { workspace = true }
|
||||
sloggers = { workspace = true }
|
||||
types = { workspace = true }
|
||||
eth2_config = { workspace = true }
|
||||
task_executor = { workspace = true }
|
||||
eth2_network_config = { workspace = true }
|
||||
logging = { workspace = true }
|
||||
slog-term = { workspace = true }
|
||||
slog-async = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
slog-json = "2.3.0"
|
||||
exit-future = "0.2.0"
|
||||
serde = "1.0.116"
|
||||
exit-future = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
serde_derive = "1.0.116"
|
||||
|
||||
[target.'cfg(not(target_family = "unix"))'.dependencies]
|
||||
|
||||
Reference in New Issue
Block a user