crates/knut-bifrost/wasm-guest/Cargo.toml
# A real `wasm32-unknown-unknown` guest for the `WasmTransform` host
# (`crates/knut-bifrost/src/wasm.rs`). NOT a workspace member — the host
# workspace is native (x86_64) and this crate only ever builds for wasm32, so
# the root `Cargo.toml` lists it under `[workspace] exclude`. Build with:
#
# cargo build --target wasm32-unknown-unknown --release
#
# The artifact lands at
# target/wasm32-unknown-unknown/release/knut_bifrost_wasm_guest.wasm
[package]
name = "knut-bifrost-wasm-guest"
version = "0.1.3"
edition = "2021"
license = "Apache-2.0"
description = "A real arrow-on-wasm guest for knut-bifrost's WasmTransform host: keep only even _gar_id rows"
publish = false
# Detach from the parent knut workspace: this crate is its own one-package
# workspace so `cargo build --target wasm32-unknown-unknown` resolves a separate
# (wasm-only) dependency tree and lockfile.
[workspace]
package = {}
[lib]
crate-type = ["cdylib"]
[dependencies]
# Arrow 58 to match the host's IPC stream format (the knut-bifrost `wasm`
# feature reads/writes with `arrow-ipc` 58). default-features = false keeps the
# wasm32 footprint lean and avoids non-wasm transitive deps where possible.
arrow-array = { version = "59", default-features = false }
arrow-schema = { version = "59", default-features = false }
arrow-ipc = { version = "59", default-features = false }
arrow-select = { version = "59", default-features = false }
[profile.release]
opt-level = "z"
lto = true
# Abort on panic: no unwinding tables on wasm32, smaller artifact.
panic = "abort"