Skip to content

Commit 2683e39

Browse files
committed
Stabilize diesel
1 parent 98b734c commit 2683e39

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

Cargo.lock

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

watch/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ serde_json = "1.0.58"
2828
reqwest = { version = "0.11.0", features = ["json","stream"] }
2929
url = "2.2.2"
3030
rand = "0.7.3"
31-
diesel = { git = "https://github.com/diesel-rs/diesel", branch = "master", features = ["postgres", "r2d2"] }
32-
diesel_migrations = { git = "https://github.com/diesel-rs/diesel", branch = "master", features = ["postgres"] }
31+
diesel = { version = "2.0.2", features = ["postgres", "r2d2"] }
32+
diesel_migrations = { version = "2.0.0", features = ["postgres"] }
3333
byteorder = "1.4.3"
3434
bls = { path = "../crypto/bls" }
3535
hex = "0.4.2"

watch/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(unix)]
12
pub mod block_packing;
23
pub mod block_rewards;
34
pub mod blockprint;

watch/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![cfg(unix)]
2-
31
use std::process;
42

53
mod block_packing;
@@ -13,6 +11,7 @@ mod server;
1311
mod suboptimal_attestations;
1412
mod updater;
1513

14+
#[cfg(unix)]
1615
#[tokio::main]
1716
async fn main() {
1817
match cli::run().await {
@@ -24,3 +23,6 @@ async fn main() {
2423
}
2524
}
2625
}
26+
27+
#[cfg(windows)]
28+
fn main() {}

watch/tests/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![recursion_limit = "256"]
2+
#![cfg(unix)]
23

34
use beacon_chain::test_utils::{
45
AttestationStrategy, BeaconChainHarness, BlockStrategy, EphemeralHarnessType,

0 commit comments

Comments
 (0)