Skip to content

Commit

Permalink
Fix windows build (hydro-project#584)
Browse files Browse the repository at this point in the history
* Fix windows build
  • Loading branch information
MingweiSamuel authored Apr 13, 2023
1 parent 010f06e commit 29affb4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 38 deletions.
43 changes: 7 additions & 36 deletions hydroflow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,7 @@ macros = [ "hydroflow_macro", "hydroflow_datalog" ]
hydroflow_macro = [ "dep:hydroflow_macro" ]
hydroflow_datalog = [ "dep:hydroflow_datalog" ]
cli_integration = [ "hydroflow_cli_integration", "async-trait" ]

[[example]]
name = "echoserver"

[[example]]
name = "echo_serde_json"

[[example]]
name = "chat"

[[example]]
name = "graph_reachability"

[[example]]
name = "graph_unreachability"

[[example]]
name = "rga"

[[example]]
name = "three_clique"

[[example]]
name = "two_pc"

[[example]]
name = "deadlock_detector"

[[example]]
name = "kvs"

[[example]]
name = "vector_clock"

[[example]]
name = "kvs_bench"
kvs_bench = []

[dependencies]
bincode = "1.3"
Expand Down Expand Up @@ -107,4 +72,10 @@ zipf = "7.0.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
# Rayon (rust data-parallelism library) does not compile on WASM.
criterion = { version = "0.4", features = [ "async_tokio", "html_reports" ] }

[target.'cfg(not(any(target_arch = "wasm32", target_family = "windows")))'.dev-dependencies]
tmq = "0.3.2"

[[example]]
name = "kvs_bench"
required-features = [ "kvs_bench" ]
3 changes: 2 additions & 1 deletion hydroflow/examples/kvs_bench/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ mod server;
mod util;

use crate::server::run_server;

use clap::command;
use clap::Parser;
use clap::Subcommand;
use std::time::Duration;

use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;
use std::sync::Arc;
use std::time::Duration;

#[derive(Debug, Parser)]
struct Cli {
Expand Down
2 changes: 1 addition & 1 deletion hydroflow_cli_integration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ async fn accept(bound: BoundConnection) -> ConnectedBidi {

#[cfg(not(unix))]
{
let _ = listener;
std::mem::drop(listener);
panic!("Unix sockets are not supported on this platform")
}
}
Expand Down

0 comments on commit 29affb4

Please sign in to comment.