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>
34 lines
924 B
TOML
34 lines
924 B
TOML
[package]
|
|
name = "slashing_protection"
|
|
version = "0.1.0"
|
|
authors = ["Michael Sproul <michael@sigmaprime.io>", "pscott <scottpiriou@gmail.com>"]
|
|
edition = { workspace = true }
|
|
autotests = false
|
|
|
|
[features]
|
|
arbitrary-fuzz = ["types/arbitrary-fuzz", "eip_3076/arbitrary-fuzz"]
|
|
portable = ["types/portable"]
|
|
|
|
[dependencies]
|
|
arbitrary = { workspace = true, features = ["derive"] }
|
|
bls = { workspace = true }
|
|
eip_3076 = { workspace = true, features = ["json"] }
|
|
ethereum_serde_utils = { workspace = true }
|
|
filesystem = { workspace = true }
|
|
fixed_bytes = { workspace = true }
|
|
r2d2 = { workspace = true }
|
|
r2d2_sqlite = "0.21.0"
|
|
rusqlite = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
tracing = { workspace = true }
|
|
types = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
rayon = { workspace = true }
|
|
|
|
[[test]]
|
|
name = "slashing_protection_tests"
|
|
path = "tests/main.rs"
|