# The sink of `wai-vector`, and the recomputation of its vectors, as a WebAssembly # module for a browser's engine, with a C ABI and no bindings generator. # # Two builds come from it. With the default feature, for `wasm32-unknown-unknown`: the # module `verify.mjs` recomputes every vector file with, under Node with no # dependency. Without it, for `wasm32v1-none`: the package a site serves, the sink's # exports alone, which `build-pkg.sh` builds and `check-mvp.mjs` holds to # WebAssembly 1.0. # # `no_std` with `alloc`, and no dependency but `wai-vector`: it builds only for a # wasm32 target. [package] name = "wai-vector-wasm" version = "0.1.0" edition = "2024" rust-version = "1.97" license = "Apache-2.0" publish = false [lib] crate-type = ["cdylib"] path = "src/lib.rs" [features] default = ["recompute"] # The exports `wv_recompute` and `wv_form`: a vector's expected file and a payload's # authoring form. A sink needs neither, and the package is built without them. recompute = [] [dependencies] # Neither build needs authoring code: a sink's build, with no stroker. wai-vector = { path = "..", default-features = false } [profile.release] debug = false