Arrow User-Defined Functions Framework on WebAssembly
Example
Build the WebAssembly module:
cargo build --release -p arrow-udf-wasm-example --target wasm32-wasi
Run the example:
cargo run --example wasm -- target/wasm32-wasi/release/arrow_udf_wasm_example.wasm
Run the Python example:
cargo run --example python
Build the Python WebAssembly module:
PYO3_NO_PYTHON=1 cargo build --release -p arrow-udf-python --target wasm32-wasi
mkdir arrow-udf-python/target/wasm32-wasi/wasi-deps/bin
cp target/wasm32-wasi/release/arrow_udf_python.wasm arrow-udf-python/target/wasm32-wasi/wasi-deps/bin/python.wasm
Run the Python WebAssembly example:
cargo run --release --example python_wasm