mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
There are certain crates which we re-export within `types` which creates a fragmented DevEx, where there are various ways to import the same crates.
```rust
// consensus/types/src/lib.rs
pub use bls::{
AggregatePublicKey, AggregateSignature, Error as BlsError, Keypair, PUBLIC_KEY_BYTES_LEN,
PublicKey, PublicKeyBytes, SIGNATURE_BYTES_LEN, SecretKey, Signature, SignatureBytes,
get_withdrawal_credentials,
};
pub use context_deserialize::{ContextDeserialize, context_deserialize};
pub use fixed_bytes::FixedBytesExtended;
pub use milhouse::{self, List, Vector};
pub use ssz_types::{BitList, BitVector, FixedVector, VariableList, typenum, typenum::Unsigned};
pub use superstruct::superstruct;
```
This PR removes these re-exports and makes it explicit that these types are imported from a non-`consensus/types` crate.
Co-Authored-By: Mac L <mjladson@pm.me>
50 lines
1.3 KiB
TOML
50 lines
1.3 KiB
TOML
[package]
|
|
name = "beacon_node"
|
|
version = { workspace = true }
|
|
authors = [
|
|
"Paul Hauner <paul@paulhauner.com>",
|
|
"Age Manning <Age@AgeManning.com",
|
|
]
|
|
edition = { workspace = true }
|
|
|
|
[lib]
|
|
name = "beacon_node"
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
write_ssz_files = [
|
|
"beacon_chain/write_ssz_files",
|
|
] # Writes debugging .ssz files to /tmp during block processing.
|
|
testing = [] # Enables testing-only CLI flags
|
|
|
|
[dependencies]
|
|
account_utils = { workspace = true }
|
|
beacon_chain = { workspace = true }
|
|
bls = { workspace = true }
|
|
clap = { workspace = true }
|
|
clap_utils = { workspace = true }
|
|
client = { path = "client" }
|
|
directory = { workspace = true }
|
|
dirs = { workspace = true }
|
|
environment = { workspace = true }
|
|
eth2_config = { workspace = true }
|
|
execution_layer = { workspace = true }
|
|
genesis = { workspace = true }
|
|
hex = { workspace = true }
|
|
http_api = { workspace = true }
|
|
hyper = { workspace = true }
|
|
lighthouse_network = { workspace = true }
|
|
monitoring_api = { workspace = true }
|
|
network_utils = { workspace = true }
|
|
sensitive_url = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
slasher = { workspace = true }
|
|
store = { workspace = true }
|
|
strum = { workspace = true }
|
|
task_executor = { workspace = true }
|
|
tracing = { workspace = true }
|
|
types = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
node_test_rig = { path = "../testing/node_test_rig" }
|