Code Monkey home page Code Monkey logo

Comments (5)

koute avatar koute commented on April 28, 2024 5

The wasm32-unknown-unknown builds work (FYI, those are all release builds as rustc itself isn't able to properly do a debug build for that target yet), as do all of the debug *-emscripten ones. The Emscripten release builds check the generated .js file's syntax, which is why they fail.

You need to change this:

let callback = @{callback};

into this:

var callback = @{callback};

in html.rs#48

from yew.

therustmonk avatar therustmonk commented on April 28, 2024 4

Thank you for this issue report. Right, It doesn't work for every target, but only for asmjs debug. While there are cases when even asmjs fails, like this one: rust-lang/rust#46730
I'm going to do it compatible with all targets. With your permission I will use this issue for tracking support of:

  • asmjs-unkown-emscripten - debug
  • asmjs-unkown-emscripten - release
  • wasm32-unknown-emscripten - debug
  • wasm32-unknown-emscripten - release
  • wasm32-unknown-unknown - debug
  • wasm32-unknown-unknown - release
  • add checks to TravisCI

Related: koute/stdweb#36

from yew.

therustmonk avatar therustmonk commented on April 28, 2024 3

@koute Thank you for the explanation! You've helped us to fix that.
Huge and Special Thanks for stdweb and carg-web! It's vital to this framework.

from yew.

tinywombat765 avatar tinywombat765 commented on April 28, 2024

from yew.

jstarry avatar jstarry commented on April 28, 2024

Closing since asmjs-unkown-emscripten, wasm32-unknown-emscripten, and wasm32-unknown-unknown - debug have been supported for some time (debug and release)

from yew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.