mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +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>
85 lines
2.1 KiB
TOML
85 lines
2.1 KiB
TOML
[package]
|
|
name = "lighthouse_network"
|
|
version = "0.2.0"
|
|
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
|
edition = { workspace = true }
|
|
autotests = false
|
|
|
|
[features]
|
|
libp2p-websocket = []
|
|
|
|
[dependencies]
|
|
alloy-primitives = { workspace = true }
|
|
alloy-rlp = { workspace = true }
|
|
bls = { workspace = true }
|
|
bytes = { workspace = true }
|
|
delay_map = { workspace = true }
|
|
directory = { workspace = true }
|
|
dirs = { workspace = true }
|
|
discv5 = { workspace = true }
|
|
either = { workspace = true }
|
|
eth2 = { workspace = true, features = ["lighthouse"] }
|
|
ethereum_ssz = { workspace = true }
|
|
ethereum_ssz_derive = { workspace = true }
|
|
fixed_bytes = { workspace = true }
|
|
fnv = { workspace = true }
|
|
futures = { workspace = true }
|
|
gossipsub = { workspace = true }
|
|
hex = { workspace = true }
|
|
itertools = { workspace = true }
|
|
libp2p-mplex = "0.43"
|
|
lighthouse_version = { workspace = true }
|
|
local-ip-address = "0.6"
|
|
logging = { workspace = true }
|
|
lru = { workspace = true }
|
|
lru_cache = { workspace = true }
|
|
metrics = { workspace = true }
|
|
network_utils = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
prometheus-client = "0.23.0"
|
|
rand = { workspace = true }
|
|
regex = { workspace = true }
|
|
serde = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
smallvec = { workspace = true }
|
|
snap = { workspace = true }
|
|
ssz_types = { workspace = true }
|
|
strum = { workspace = true }
|
|
superstruct = { workspace = true }
|
|
task_executor = { workspace = true }
|
|
tokio = { workspace = true }
|
|
tokio-util = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
typenum = { workspace = true }
|
|
types = { workspace = true }
|
|
unsigned-varint = { version = "0.8", features = ["codec"] }
|
|
|
|
[dependencies.libp2p]
|
|
version = "0.56"
|
|
default-features = false
|
|
features = [
|
|
"identify",
|
|
"yamux",
|
|
"noise",
|
|
"dns",
|
|
"tcp",
|
|
"tokio",
|
|
"plaintext",
|
|
"secp256k1",
|
|
"macros",
|
|
"metrics",
|
|
"quic",
|
|
"upnp",
|
|
]
|
|
|
|
[dev-dependencies]
|
|
async-channel = { workspace = true }
|
|
logging = { workspace = true }
|
|
proptest = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
|
|
[[test]]
|
|
name = "lighthouse_network_tests"
|
|
path = "tests/main.rs"
|