Comments (6)
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.
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.
This behavior should be fixed to emit proper diagnostics, obviously, instead of an ICE. Diagnostics, possibly, that say what I just said.
from rust.
Excellent, thank you for confirming that!
from rust.
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.
I found out this is actually a duplicate of #122333
Neat!
from rust.
Related Issues (20)
- ICE: wfchk: type parameter .. out of range when instantiating, args=`[{const error}]` HOT 1
- ICE when compiling HOT 5
- Bad dependency on a windows DLL in rust 1.78 HOT 27
- Next-gen solver: Compiler "hang" & eventual OOM when facing complex mutually recursive structs & many projections HOT 6
- std::os::fd module missing on Hermit HOT 2
- rustc segfaults when loading mimalloc with LD_PRELOAD HOT 15
- ICE: kcfi: encode_const: unexpected kind `UnevaluatedConst { .. }`
- Japanese translation of Rust by Example is broken
- Reference to temporary variable passed as `&'static dyn` parameter compiles HOT 2
- What should SIMD bitmasks look like? HOT 6
- clarify local_crate_exports_generics
- Miscompile for `riscv64gc-unknown-none-elf` using `inout()` in `asm!()`
- "you might have meant to return this value" suggests invalid syntax HOT 1
- tidy error: rustc-perf workspace doesn't have a Cargo.lock
- inherent method selection uses subtyping even when using paths
- "./x.py run miri --stage 1" no longer works HOT 5
- Bootstrap rustc wrapper verbosity not tracked
- Mutex isn't guaranteed to have atomic acquire/release semantics HOT 13
- `unnameable_types` lint emits incorrect visibility syntax HOT 1
- Suggest adding `{ .. }` on accidental usage of unit variant pattern for a struct variant HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.