Skip to content

Commit

Permalink
fixup! Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Apr 13, 2023
1 parent 4d2f82f commit e49c508
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hydroflow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ zipf = "7.0.0"
# 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_os="windows")))'.dev-dependencies]
[target.'cfg(not(any(target_arch = "wasm32", target_family = "windows")))'.dev-dependencies]
tmq = "0.3.2"
19 changes: 11 additions & 8 deletions hydroflow/examples/kvs_bench/main.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
#[cfg(windows)]
#[cfg(target_family = "windows")]
fn main() {
unimplemented!();
}

#[cfg(not(windows))]
#[cfg(not(target_family = "windows"))]
fn main() {
mod buffer_pool;
mod protocol;
mod server;
mod util;
#[path = "."]
mod src {
mod buffer_pool;
mod protocol;
mod server;
mod util;
}
use src::*;

use crate::server::run_server;
use server::run_server;

use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;
Expand Down Expand Up @@ -38,7 +42,6 @@ fn main() {
dist: f64,
},
}

let ctx = tmq::Context::new();

let throughput = Arc::new(AtomicUsize::new(0));
Expand Down

0 comments on commit e49c508

Please sign in to comment.