Giter Site home page Giter Site logo

Comments (3)

koute avatar koute commented on May 13, 2024

You just don't pass --nodejs and then cargo-web will try to run them in Chrome/Chromium. (You also need to temporairly comment out the #[cfg(...)] which prevents them from running, since I haven't yet implemented support for switching on features in cargo-web.)

Right now it's very hacky which is why it's not done on the CI. In the future I would certainly want to switch to headless Chrome or Firefox, then we can start running them on CI.

As to how hard would it be to support headless Chrome? Well, quite frankly I'm not sure. We'd have to implement the devtools protocol to communicate with it, and we'd have to get precompiled binaries for it from somewhere - probably build them ourselves just as we do for Emscripten (this alone is a huge pain since compiling Chrome takes ages, and the build system is a nightmare to set up).

from stdweb.

RangerMauve avatar RangerMauve commented on May 13, 2024

What about using an existing node.js headless chrome lib and creating WASM bindings for it's API?

from stdweb.

koute avatar koute commented on May 13, 2024

All of the tests are being run on CI and I've added instructions on how to run them at the end of the README, so closing.

from stdweb.

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.