Skip to content

Commit ea4b05b

Browse files
committed
update dependencies
1 parent 687c58f commit ea4b05b

File tree

9 files changed

+425
-389
lines changed

9 files changed

+425
-389
lines changed

Cargo.lock

Lines changed: 375 additions & 378 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ resolver = "2"
9191

9292
[patch]
9393
[patch.crates-io]
94-
warp = { git = "https://github.com/macladson/warp", rev="7e75acc368229a46a236a8c991bf251fe7fe50ef" }
94+
# TODO: remove when 0.3.6 get's released.
95+
warp = { git = "https://github.com/seanmonstar/warp.git", rev="149913fe" }
9596

9697
[profile.maxperf]
9798
inherits = "release"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ arbitrary-fuzz:
207207
# Runs cargo audit (Audit Cargo.lock files for crates with security vulnerabilities reported to the RustSec Advisory Database)
208208
audit:
209209
cargo install --force cargo-audit
210-
cargo audit --ignore RUSTSEC-2020-0071 --ignore RUSTSEC-2022-0093
210+
cargo audit
211211

212212
# Runs `cargo vendor` to make sure dependencies can be vendored for packaging, reproducibility and archival purpose.
213213
vendor:

beacon_node/execution_layer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ keccak-hash = "0.10.0"
5050
hash256-std-hasher = "0.15.2"
5151
triehash = "0.8.4"
5252
hash-db = "0.15.2"
53-
pretty_reqwest_error = { path = "../../common/pretty_reqwest_error" }
53+
pretty_reqwest_error = { path = "../../common/pretty_reqwest_error" }

common/eth2_network_config/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
build = "build.rs"
88

99
[build-dependencies]
10-
zip = "0.5.8"
10+
zip = "0.6"
1111
eth2_config = { path = "../eth2_config"}
1212

1313
[dev-dependencies]
@@ -18,4 +18,4 @@ serde_yaml = "0.8.13"
1818
types = { path = "../../consensus/types"}
1919
ethereum_ssz = "0.5.0"
2020
eth2_config = { path = "../eth2_config"}
21-
discv5 = "0.3.1"
21+
discv5 = "0.3.1"

common/logging/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ sloggers = { version = "2.1.1", features = ["json"] }
1717
slog-async = "2.7.0"
1818
take_mut = "0.2.2"
1919
parking_lot = "0.12.1"
20-
serde = "1.0.153"
20+
serde = "1.0.153"
2121
serde_json = "1.0.94"
22-
chrono = "0.4.23"
22+
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
23+
time = "0.3.25"

testing/web3signer_tests/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ serde_derive = "1.0.116"
2626
serde_yaml = "0.8.13"
2727
eth2_network_config = { path = "../../common/eth2_network_config" }
2828
serde_json = "1.0.58"
29-
zip = "0.5.13"
29+
zip = "0.6"
3030
lazy_static = "1.4.0"
31-
parking_lot = "0.12.0"
31+
parking_lot = "0.12.0"

watch/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ tokio-postgres = "0.7.5"
4141
http_api = { path = "../beacon_node/http_api" }
4242
beacon_chain = { path = "../beacon_node/beacon_chain" }
4343
network = { path = "../beacon_node/network" }
44-
testcontainers = "0.14.0"
44+
# TODO: update to 0.15 when released: https://github.com/testcontainers/testcontainers-rs/issues/497
45+
testcontainers = { git = "https://github.com/testcontainers/testcontainers-rs/", rev = "0f2c9851" }
4546
unused_port = { path = "../common/unused_port" }
4647
task_executor = { path = "../common/task_executor" }

watch/tests/tests.rs

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,50 @@ use watch::{
2222
};
2323

2424
use log::error;
25+
use std::collections::HashMap;
2526
use std::env;
2627
use std::net::SocketAddr;
2728
use std::time::Duration;
2829
use tokio::{runtime, task::JoinHandle};
2930
use tokio_postgres::{config::Config as PostgresConfig, Client, NoTls};
3031
use unused_port::unused_tcp4_port;
3132

32-
use testcontainers::{clients::Cli, images::postgres::Postgres, RunnableImage};
33+
use testcontainers::{clients::Cli, core::WaitFor, Image, RunnableImage};
34+
35+
#[derive(Debug)]
36+
pub struct Postgres(HashMap<String, String>);
37+
38+
impl Default for Postgres {
39+
fn default() -> Self {
40+
let mut env_vars = HashMap::new();
41+
env_vars.insert("POSTGRES_DB".to_owned(), "postgres".to_owned());
42+
env_vars.insert("POSTGRES_HOST_AUTH_METHOD".into(), "trust".into());
43+
44+
Self(env_vars)
45+
}
46+
}
47+
48+
impl Image for Postgres {
49+
type Args = ();
50+
51+
fn name(&self) -> String {
52+
"postgres".to_owned()
53+
}
54+
55+
fn tag(&self) -> String {
56+
"11-alpine".to_owned()
57+
}
58+
59+
fn ready_conditions(&self) -> Vec<WaitFor> {
60+
vec![WaitFor::message_on_stderr(
61+
"database system is ready to accept connections",
62+
)]
63+
}
64+
65+
fn env_vars(&self) -> Box<dyn Iterator<Item = (&String, &String)> + '_> {
66+
Box::new(self.0.iter())
67+
}
68+
}
3369

3470
type E = MainnetEthSpec;
3571

0 commit comments

Comments
 (0)