Skip to content

Commit

Permalink
put tokio_tungstenite behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Sep 6, 2024
1 parent 88db94f commit 9851f5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hydroflow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ hydroflow_datalog = [ "dep:hydroflow_datalog" ]
deploy_integration = [ "dep:hydroflow_deploy_integration" ]
python = [ "dep:pyo3" ]
debugging = [ "hydroflow_lang/debugging" ]
tokio_tungstenite = [ "dep:tokio-tungstenite"]

[[example]]
name = "kvs_bench"
Expand Down Expand Up @@ -59,7 +60,7 @@ serde_json = "1.0.115"
slotmap = "1.0.0"
smallvec = "1.6.1"
tokio-stream = { version = "0.1.3", default-features = false, features = [ "time", "io-util", "sync" ] }
tokio-tungstenite = "0.23.1"
tokio-tungstenite = { version = "0.23.1", optional = true }
tracing = "0.1.37"
variadics = { path = "../variadics", version = "^0.0.6" }
web-time = "1.0.0"
Expand Down
3 changes: 3 additions & 0 deletions hydroflow/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ pub use socket::*;

#[cfg(feature = "deploy_integration")]
pub mod deploy;

#[cfg(feature = "tokio_tungstenite")]
mod websocket;
#[cfg(feature = "tokio_tungstenite")]
pub use websocket::*;

use std::io::Read;
Expand Down

0 comments on commit 9851f5c

Please sign in to comment.