Trial a Rust engine powering a Civet interface

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.
This commit is contained in:
Aaron Fenyes 2024-07-28 21:10:04 -07:00
parent d7dbee4c05
commit 12abef4076
8 changed files with 287 additions and 0 deletions

View file

@ -0,0 +1,6 @@
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