DEV Community

Discussion on: Simple Rust + WASM example

Collapse
 
pojntfx profile image
Felicitas Pojtinger

WASM is awesome. I'd recommend using parcel as a bundler though, it's much simpler to get started with.

import { add } from "./add.rs"

const sum = add(1,2)

console.log(sum)
Enter fullscreen mode Exit fullscreen mode
Collapse
 
qm3ster profile image
Mihail Malo

It automatically applies bindgen?

Collapse
 
pojntfx profile image
Felicitas Pojtinger

Not yet: #647