Skip to content

Commit

Permalink
make wasm udf optional
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed May 15, 2024
1 parent 882d8b4 commit dc71c16
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/expr/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ normal = ["workspace-hack", "ctor"]
[dependencies]
anyhow = "1"
arrow-array = { workspace = true }
arrow-flight = { workspace = true }
arrow-schema = { workspace = true }
async-trait = "0.1"
auto_impl = "1"
Expand Down
4 changes: 3 additions & 1 deletion src/expr/impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ ignored = ["workspace-hack", "ctor"]
normal = ["workspace-hack", "ctor"]

[features]
default = ["embedded-wasm-udf"]
embedded-deno-udf = ["arrow-udf-js-deno"]
embedded-python-udf = ["arrow-udf-python"]
embedded-wasm-udf = ["arrow-udf-wasm"]

[dependencies]
aho-corasick = "1"
Expand All @@ -29,7 +31,7 @@ arrow-udf-flight = { workspace = true }
arrow-udf-js = { workspace = true }
arrow-udf-js-deno = { workspace = true, optional = true }
arrow-udf-python = { workspace = true, optional = true }
arrow-udf-wasm = { workspace = true }
arrow-udf-wasm = { workspace = true, optional = true }
async-trait = "0.1"
auto_enums = { workspace = true }
chrono = { version = "0.4", default-features = false, features = [
Expand Down
1 change: 1 addition & 0 deletions src/expr/impl/src/udf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ mod external;
#[cfg(feature = "embedded-python-udf")]
mod python;
mod quickjs;
#[cfg(feature = "embedded-wasm-udf")]
mod wasm;

/// Download wasm binary from a link.
Expand Down
2 changes: 0 additions & 2 deletions src/frontend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ normal = ["workspace-hack"]
anyhow = "1"
arc-swap = "1"
arrow-schema = { workspace = true }
arrow-udf-flight = { workspace = true }
arrow-udf-wasm = { workspace = true }
async-recursion = "1.1.0"
async-trait = "0.1"
auto_enums = { workspace = true }
Expand Down

0 comments on commit dc71c16

Please sign in to comment.