Git Product home page Git Product logo

Comments (6)

mrfelton avatar mrfelton commented on June 23, 2024 1

Removing those flags gets things working!

RUSTFLAGS="" wasm-pack build --target web --release
...
[INFO]: ✨   Done in 40.55s
[INFO]: 📦   Your wasm pkg is ready to publish at /Users/tom/workspace/dnssec-prover/wasmpack/pkg.

Thank you!

from rust.

workingjubilee avatar workingjubilee commented on June 23, 2024

https://github.com/cachix/devenv/blob/800f19d1b999f89464fd8e0226abf4b3b444b0fa/src/modules/languages/rust.nix#L124

Your nix configuration is passing a framework to a wasm build job.

The behavior of the wasm linker is to panic because it doesn't have anything useful it can do when told to link a framework.

from rust.

workingjubilee avatar workingjubilee commented on June 23, 2024

This behavior should be fixed to emit proper diagnostics, obviously, instead of an ICE. Diagnostics, possibly, that say what I just said.

from rust.

workingjubilee avatar workingjubilee commented on June 23, 2024

Excellent, thank you for confirming that!

from rust.

workingjubilee avatar workingjubilee commented on June 23, 2024

It's tempting to say we should just ignore the framework path for the wasm linker? But in my experience, even very senior software developers sometimes expect wasm to have some... truly magical powers. So I think explicitly rejecting it with an improved diagnostic is better. This helps more in the event of

  • a programmer seriously expected that to work
  • ...wasm somehow does grow magic powers and we can accept that?!?!

If people complain we can simply go to the ignoring path.

from rust.

workingjubilee avatar workingjubilee commented on June 23, 2024

I found out this is actually a duplicate of #122333

Neat!

from rust.

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.