Skip to content

Commit 7ec5a3a

Browse files
committed
Stabilize diesel
1 parent 98b734c commit 7ec5a3a

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#![cfg(unix)]
2-
1+
//#![cfg(unix)]
32
use std::process;
43

54
mod block_packing;
@@ -13,6 +12,7 @@ mod server;
1312
mod suboptimal_attestations;
1413
mod updater;
1514

15+
#[cfg(unix)]
1616
#[tokio::main]
1717
async fn main() {
1818
match cli::run().await {
@@ -24,3 +24,6 @@ async fn main() {
2424
}
2525
}
2626
}
27+
28+
#[cfg(windows)]
29+
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)