So far this project represents attempts to create a wasm-module which wraps the rust bluss/ndarray scientific computation library to provide performant arrays to datascientists within the js environment.
-
follow the installation steps for rust here
-
setup rust nightly on your machine
-
update and install wasm-target
-
install wasm-bindgen
cargo +nightly install wasm-bindgen-cli
- extra info
From the root of the project directory run
cargo +nightly build --lib --target wasm32-unknown-unknown
wasm-bindgen target/wasm32-unknown-unknown/debug/rust_sci_test.wasm \
--out-dir js_code/