
Write a basic web app with a Rust engine, compiled to WebAssembly, powering a Civet interface. Do linear algebra in the engine using the `nalgebra` crate.
6 lines
160 B
Makefile
6 lines
160 B
Makefile
app.js: app.civet pkg/engine_bg.wasm
|
|
civet --typecheck app.civet
|
|
civet --js -c app.civet -o .js
|
|
|
|
pkg/engine_bg.wasm: src/lib.rs
|
|
wasm-pack build --target web
|