Skip to content

Commit

Permalink
Merge pull request #466 from DaniPopes/serialize-features
Browse files Browse the repository at this point in the history
Extract egraph-serialize features
  • Loading branch information
saulshanabrook authored Nov 11, 2024
2 parents ae271b3 + 6a830c5 commit 135327b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
24 changes: 14 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,21 @@ harness = false
members = [".", "web-demo"]

[[test]]
harness = false
name = "files"
harness = false
required-features = ["bin"]

[[bin]]
name = "egglog"
path = "src/main.rs"
required-features = ["bin"]

[features]
default = ["bin"]

bin = ["dep:clap", "dep:env_logger", "egraph-serialize/serde", "dep:serde_json"]
bin = ["serde", "graphviz", "dep:clap", "dep:env_logger", "dep:serde_json"]
serde = ["egraph-serialize/serde"]
graphviz = ["egraph-serialize/graphviz"]
wasm-bindgen = ["instant/wasm-bindgen", "dep:getrandom"]
nondeterministic = []

Expand All @@ -40,17 +48,14 @@ smallvec = "1.11"

generic_symbolic_expressions = "5.0.4"

egraph-serialize = { version = "0.2.0", features = [
"serde",
"graphviz",
] }
serde_json = { optional = true, version = "1.0.100", features = [
"preserve_order",
] }
egraph-serialize = { version = "0.2.0", default-features = false }

# binary dependencies
clap = { version = "4", features = ["derive"], optional = true }
env_logger = { version = "0.10", optional = true }
serde_json = { version = "1.0.100", optional = true, features = [
"preserve_order",
] }

ordered-float = { version = "3.7" }

Expand All @@ -60,7 +65,6 @@ getrandom = { version = "0.2.10", features = ["js"], optional = true }
im-rc = "15.1.0"
im = "15.1.0"


[build-dependencies]
chrono = { version = "0.4", default-features = false, features = ["now"] }

Expand Down
6 changes: 3 additions & 3 deletions web-demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ crate-type = ["cdylib"]

[dependencies.egglog]
default-features = false
features = ["wasm-bindgen"]
features = ["serde", "graphviz", "wasm-bindgen"]
path = ".."

[dependencies]
Expand All @@ -20,7 +20,7 @@ serde_json = "1.0"
console_error_panic_hook = "0.1.7"
js-sys = "0.3"
wasm-bindgen = "0.2"
web-sys = {version = "0.3.64", features = [
web-sys = { version = "0.3.64", features = [
# "Blob",
# "BlobPropertyBag",
# "console",
Expand All @@ -33,4 +33,4 @@ web-sys = {version = "0.3.64", features = [
# "Text",
"Worker",
"DedicatedWorkerGlobalScope",
]}
] }

0 comments on commit 135327b

Please sign in to comment.