In this example, we demonstrate how to use JSON to call Rust functions in SSVM from JavaScript. Read about Getting started with Rust functions in Node.js.
If you have not done so already, follow these simple instructions to install Rust, Node.js, SSVM, and ssvmup.
$ rustwasmc build --enable-aot
$ cd node
$ node test.js
[0.5,-3.0]
$ cd node
$ node server.js
Listening at http://localhost:8080
Then point your browser to http://hostname:8080 enter numeric values for a, b, c, and hit the "Solve" button to find the roots.