Skip to content

Commit

Permalink
Remove diagnostics from default features
Browse files Browse the repository at this point in the history
Diagnostics is still enabled for hydroflow and hydroflow_data when
building non-wasm32 targets.
  • Loading branch information
tylerhou committed Feb 8, 2023
1 parent 962d903 commit ce8d563
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions hydroflow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ tokio-util = { version = "0.7.4", features = [ "net", "codec" ] }
variadics = { path = "../variadics" }
rustc-hash = "1.1.0"

# Diagnostics feature does not work on wasm32.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
hydroflow_lang = { path = "../hydroflow_lang", features = ["diagnostics"] }

[dev-dependencies]
chrono = { version = "0.4.20", features = [ "serde" ], default-features = false }
clap = { version = "4.0.29", features = [ "derive" ] }
Expand Down
4 changes: 4 additions & 0 deletions hydroflow_datalog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ syn = { version = "1.0.0", features = [ "parsing", "extra-traits" ] }
proc-macro2 = "1.0.27"
proc-macro-crate = "1.1.0"
hydroflow_datalog_core = { path = "../hydroflow_datalog_core" }

# Diagnostics feature does not work on wasm32.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
hydroflow_datalog_core = { path = "../hydroflow_datalog_core", features = ["diagnostics" ] }
4 changes: 2 additions & 2 deletions hydroflow_datalog_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
path = "src/lib.rs"

[features]
default = [ "diagnostics" ]
default = []
diagnostics = [ "hydroflow_lang/diagnostics" ]

[dependencies]
Expand All @@ -17,7 +17,7 @@ syn = { version = "1.0.0", features = [ "parsing", "extra-traits" ] }
proc-macro2 = "1.0.27"
proc-macro-crate = "1.1.0"
rust-sitter = "0.2.1"
hydroflow_lang = { path = "../hydroflow_lang", default-features = false }
hydroflow_lang = { path = "../hydroflow_lang" }

[build-dependencies]
rust-sitter-tool = "0.2.1"
Expand Down
2 changes: 1 addition & 1 deletion hydroflow_lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[features]
default = [ "diagnostics" ]
default = []
diagnostics = []

[dependencies]
Expand Down

0 comments on commit ce8d563

Please sign in to comment.