mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 16:51:41 +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>
62 lines
1.9 KiB
TOML
62 lines
1.9 KiB
TOML
[package]
|
|
name = "http_api"
|
|
version = "0.1.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = { workspace = true }
|
|
autotests = false # using a single test binary compiles faster
|
|
|
|
[dependencies]
|
|
beacon_chain = { workspace = true }
|
|
beacon_processor = { workspace = true }
|
|
bls = { workspace = true }
|
|
bs58 = "0.4.0"
|
|
bytes = { workspace = true }
|
|
context_deserialize = { workspace = true }
|
|
directory = { workspace = true }
|
|
either = { workspace = true }
|
|
eth2 = { workspace = true, features = ["lighthouse"] }
|
|
ethereum_serde_utils = { workspace = true }
|
|
ethereum_ssz = { workspace = true }
|
|
execution_layer = { workspace = true }
|
|
fixed_bytes = { workspace = true }
|
|
futures = { workspace = true }
|
|
health_metrics = { workspace = true }
|
|
hex = { workspace = true }
|
|
lighthouse_network = { workspace = true }
|
|
lighthouse_tracing = { workspace = true }
|
|
lighthouse_version = { workspace = true }
|
|
logging = { workspace = true }
|
|
lru = { workspace = true }
|
|
metrics = { workspace = true }
|
|
network = { workspace = true }
|
|
network_utils = { workspace = true }
|
|
operation_pool = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
proto_array = { workspace = true }
|
|
rand = { workspace = true }
|
|
safe_arith = { workspace = true }
|
|
sensitive_url = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
slot_clock = { workspace = true }
|
|
state_processing = { workspace = true }
|
|
store = { workspace = true }
|
|
sysinfo = { workspace = true }
|
|
system_health = { path = "../../common/system_health" }
|
|
task_executor = { workspace = true }
|
|
tokio = { workspace = true }
|
|
tokio-stream = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tree_hash = { workspace = true }
|
|
types = { workspace = true }
|
|
warp = { workspace = true }
|
|
warp_utils = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
genesis = { workspace = true }
|
|
proto_array = { workspace = true }
|
|
|
|
[[test]]
|
|
name = "bn_http_api_tests"
|
|
path = "tests/main.rs"
|