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>
40 lines
1.3 KiB
TOML
40 lines
1.3 KiB
TOML
[package]
|
|
name = "eth2"
|
|
version = "0.1.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = { workspace = true }
|
|
|
|
[features]
|
|
default = []
|
|
lighthouse = ["proto_array", "eth2_keystore", "eip_3076", "zeroize"]
|
|
events = ["reqwest-eventsource", "futures", "futures-util"]
|
|
|
|
[dependencies]
|
|
bls = { workspace = true }
|
|
context_deserialize = { workspace = true }
|
|
educe = { workspace = true }
|
|
eip_3076 = { workspace = true, optional = true }
|
|
eth2_keystore = { workspace = true, optional = true }
|
|
ethereum_serde_utils = { workspace = true }
|
|
ethereum_ssz = { workspace = true }
|
|
ethereum_ssz_derive = { workspace = true }
|
|
futures = { workspace = true, optional = true }
|
|
futures-util = { version = "0.3.8", optional = true }
|
|
mediatype = "0.19.13"
|
|
pretty_reqwest_error = { workspace = true }
|
|
proto_array = { workspace = true, optional = true }
|
|
reqwest = { workspace = true }
|
|
reqwest-eventsource = { version = "0.6.0", optional = true }
|
|
sensitive_url = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
ssz_types = { workspace = true }
|
|
superstruct = { workspace = true }
|
|
types = { workspace = true }
|
|
zeroize = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
rand = { workspace = true }
|
|
test_random_derive = { path = "../../common/test_random_derive" }
|
|
tokio = { workspace = true }
|