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>
88 lines
2.7 KiB
TOML
88 lines
2.7 KiB
TOML
|
|
[package]
|
|
name = "beacon_chain"
|
|
version = "0.2.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>", "Age Manning <Age@AgeManning.com>"]
|
|
edition = { workspace = true }
|
|
autotests = false # using a single test binary compiles faster
|
|
|
|
[features]
|
|
default = ["participation_metrics"]
|
|
write_ssz_files = [] # Writes debugging .ssz files to /tmp during block processing.
|
|
participation_metrics = [] # Exposes validator participation metrics to Prometheus.
|
|
fork_from_env = [] # Initialise the harness chain spec from the FORK_NAME env variable
|
|
portable = ["bls/supranational-portable"]
|
|
test_backfill = []
|
|
|
|
[dependencies]
|
|
alloy-primitives = { workspace = true }
|
|
bitvec = { workspace = true }
|
|
bls = { workspace = true }
|
|
educe = { workspace = true }
|
|
eth2 = { workspace = true, features = ["lighthouse"] }
|
|
eth2_network_config = { workspace = true }
|
|
ethereum_hashing = { workspace = true }
|
|
ethereum_serde_utils = { workspace = true }
|
|
ethereum_ssz = { workspace = true }
|
|
ethereum_ssz_derive = { workspace = true }
|
|
execution_layer = { workspace = true }
|
|
fixed_bytes = { workspace = true }
|
|
fork_choice = { workspace = true }
|
|
futures = { workspace = true }
|
|
genesis = { workspace = true }
|
|
hex = { workspace = true }
|
|
int_to_bytes = { workspace = true }
|
|
itertools = { workspace = true }
|
|
kzg = { workspace = true }
|
|
lighthouse_tracing = { workspace = true }
|
|
lighthouse_version = { workspace = true }
|
|
logging = { workspace = true }
|
|
lru = { workspace = true }
|
|
merkle_proof = { workspace = true }
|
|
metrics = { workspace = true }
|
|
milhouse = { workspace = true }
|
|
once_cell = { workspace = true }
|
|
oneshot_broadcast = { path = "../../common/oneshot_broadcast/" }
|
|
operation_pool = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
proto_array = { workspace = true }
|
|
rand = { workspace = true }
|
|
rayon = { workspace = true }
|
|
safe_arith = { workspace = true }
|
|
sensitive_url = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
slasher = { workspace = true }
|
|
slot_clock = { workspace = true }
|
|
smallvec = { workspace = true }
|
|
ssz_types = { workspace = true }
|
|
state_processing = { workspace = true }
|
|
store = { workspace = true }
|
|
strum = { workspace = true }
|
|
superstruct = { workspace = true }
|
|
task_executor = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
tokio = { workspace = true }
|
|
tokio-stream = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tree_hash = { workspace = true }
|
|
tree_hash_derive = { workspace = true }
|
|
typenum = { workspace = true }
|
|
types = { workspace = true }
|
|
zstd = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
criterion = { workspace = true }
|
|
maplit = { workspace = true }
|
|
mockall = { workspace = true }
|
|
mockall_double = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
[[bench]]
|
|
name = "benches"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "beacon_chain_tests"
|
|
path = "tests/main.rs"
|