Andrew Chiw
Andrew Chiw
> trunk serve should say something like server listening at http://127.0.0.1:8080 and going to that url displays the site fine for me. Yes it does: ``` shinichi@asuka:~/source/yew-app trunk serve 2022-05-18T12:42:00.611897Z...
> Addendum: the generated files are in a dist subfolder, they contain an index.html, a yew-app-[hash]_bg.wasm and a yew-app-[hash].js file. ``` shinichi@asuka:~/source/yew-app/dist ls index.html yew-app-7bc228bf5a52d897_bg.wasm yew-app-7bc228bf5a52d897.js ``` Chromium new profile...
Thanks for the quick reply ``` shinichi@asuka:~/source/yew-app trunk --version trunk 0.15.0 shinichi@asuka:~/source/yew-app rustup show Default host: x86_64-unknown-linux-gnu rustup home: /home/shinichi/.rustup installed toolchains -------------------- stable-x86_64-unknown-linux-gnu (default) nightly-x86_64-unknown-linux-gnu installed targets for active...
It's `src/main.rs` ![yewapp](https://user-images.githubusercontent.com/9956122/169045710-af9dc366-0755-472a-8525-f35bca9c19cb.png) ``` shinichi@asuka:~/source/yew-app tree -L 2 . ├── Cargo.lock ├── Cargo.toml ├── dist │ ├── index.html │ ├── yew-app-7bc228bf5a52d897_bg.wasm │ └── yew-app-7bc228bf5a52d897.js ├── dist.tar.gz ├── index.html ├── src...
Unfortunately the same thing happens. I've gzipped my entire dev folder for you: [yew-app.tar.gz](https://github.com/yewstack/yew/files/8716685/yew-app.tar.gz)
> > > > which I know from trunk building a library crate (it only recently got the ability to build worker crates, but anyway). There _should_ be a call...
> Can you try applying the `wasm_bindgen(start)` attribute to the main function to see whether that causes wasm-bindgen to insert the instantiation code: https://rustwasm.github.io/wasm-bindgen/reference/attributes/on-rust-exports/start.html Added `wasm-bindgen = "0.2"` to Cargo.toml...