4cc613d644
## Issue Addressed #2276 ## Proposed Changes Add the `SensitiveUrl` struct which wraps `Url` and implements custom `Display` and `Debug` traits to redact user secrets from being logged in eth1 endpoints, beacon node endpoints and metrics. ## Additional Info This also includes a small rewrite of the eth1 crate to make requests using `Url` instead of `&str`. Some error messages have also been changed to remove `Url` data.
37 lines
1.2 KiB
TOML
37 lines
1.2 KiB
TOML
[package]
|
|
name = "eth2"
|
|
version = "0.1.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0.116", features = ["derive"] }
|
|
serde_json = "1.0.58"
|
|
types = { path = "../../consensus/types" }
|
|
hex = "0.4.2"
|
|
reqwest = { version = "0.11.0", features = ["json","stream"] }
|
|
eth2_libp2p = { path = "../../beacon_node/eth2_libp2p" }
|
|
proto_array = { path = "../../consensus/proto_array", optional = true }
|
|
serde_utils = { path = "../../consensus/serde_utils" }
|
|
zeroize = { version = "1.1.1", features = ["zeroize_derive"] }
|
|
eth2_keystore = { path = "../../crypto/eth2_keystore" }
|
|
libsecp256k1 = "0.3.5"
|
|
ring = "0.16.19"
|
|
bytes = "1.0.1"
|
|
account_utils = { path = "../../common/account_utils" }
|
|
sensitive_url = { path = "../../common/sensitive_url" }
|
|
eth2_ssz = "0.1.2"
|
|
eth2_ssz_derive = "0.1.0"
|
|
futures-util = "0.3.8"
|
|
futures = "0.3.8"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
psutil = { version = "3.2.0", optional = true }
|
|
procinfo = { version = "0.4.2", optional = true }
|
|
|
|
[features]
|
|
default = ["lighthouse"]
|
|
lighthouse = ["proto_array", "psutil", "procinfo"]
|