Skip to content

Commit

Permalink
chore: update examples to newer wasm_bindgen version
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Nov 7, 2024
1 parent de09225 commit eaabcf4
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 62 deletions.
57 changes: 29 additions & 28 deletions examples/initializer/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions examples/initializer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
</head>
<body>
<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z" data-bin="initializer-example" data-initializer="src/initializer.mjs"/>

<script type="module">
// you will still get the TrunkApplicationStarted event
addEventListener("TrunkApplicationStarted", (event) => {
console.log("application started - bindings:", window.wasmBindings, "event:", event);
});
</script>

</body>
<script type="module">
// you will still get the TrunkApplicationStarted event
addEventListener("TrunkApplicationStarted", (event) => {
console.log("application started - bindings:", window.wasmBindings, "event:", event);
});
</script>
</html>
57 changes: 29 additions & 28 deletions examples/vanilla/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eaabcf4

Please sign in to comment.