WASM running environnement

#1

My problem

I’ve already tried to run rust code with WebAssembly.
I have either errors in the browser or the web server does not want to start, or the file is not recognized.

Node approach

I’ve tried the node approach with Webpack with I can’t run any code

The solution I need

I need a command for building the wasm
A way of running it and interact with JS
If you need a server to run WASM, I personally use Express in NodeJS or Rocket.
If you have an example.
I want to run this example:

//Rust code
fn example(x: f64) -> f64 {
    (x*9.0+3.0)*(1.0-x)
}

//Js code
console.log(example(1.5));

Thank’s for your answer,
ccgauche.