You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will make your rust program a wasm binary. However, for calling rust functions in js more friendly, wasm-bindgen will help us tag our rust functions in the wasm module along with stuffs like type conversion in the generated wasm between rust/wasm.
403
389
@@ -420,13 +406,7 @@ While we're talking about fronend development, prototyping quickly is rather imp
420
406
421
407
So the build process now looks like this:
422
408
423
-
```mermaid
424
-
graph LR
425
-
D[rust] -->|managed by bundler| C
426
-
C[wasm] -->|managed by bundler| A[js_script]
427
-
F[additional js/css/html] -->|still the bundler| E[output bundle]
Eventually, rust code is still governed by Cargo.toml, and will build with the right rlease falg when your bundler says so, but not in dev-mode (often enable hot-reload).
432
412
@@ -551,5 +531,3 @@ Therefore, I've tried to build the dist bundle first, move it to another folder,
0 commit comments