wasmbuild
wasmbuild copied to clipboard
Build tool to use Rust code in Deno and the browser.
The code in https://github.com/denoland/wasmbuild/blob/main/lib/loader.ts should be updated to not cache a wasm module if it doesn't start with the wasm magic number (`\0asm`) https://github.com/denoland/deno_graph/issues/453
Right now we just say it fails, but we don't show the output. We should show the stderr and output the stdout on failure. https://github.com/denoland/wasmbuild/blob/f89f6f3338bd74a52db7ac20596e6a79d5fb35e6/lib/manifest.ts#L56 This can be tested out...
Use `CARGO_ENCODED_RUSTFLAGS` instead of `RUSTFLAGS` to pass flags to rustc, and fix incorrect quoting of our remapped path flags. This change allows arguments (including the ones added internally for `--remap-path-prefix`)...
:wave: Hello. I built the latest released version of \@std/crypto's wasm binary on my machine a few weeks ago. While looking at the data recently, I noticed that my local...
Hi there, reproducing this issue is quite simple: if the path of the project contains any whitespace, then wasmbuild fails. As an example take this project, created in a folder...
To help prevent a regression in the future. This should just be a test that spawns a browser and ensures that the output of wasmbuild works in it.
**[EDIT]** `wasm_url.protocol` was an empty string (thanks to the local dev server / NextJS). Might it be worth including `""` as a case [here](https://github.com/denoland/wasmbuild/blob/71c21fb52ad0779059df03bc8004444b04c873c2/lib/wasmbuild.generated.js#L241-L242)? --- I'm getting the following error...
Would be great if there was an option (like `--wasi`) that would bootstrap the Wasm module with `std/wasi`.
fixes this warning ``` warning: lab/fff/rs_lib/Cargo.toml: `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition ```
Towards https://github.com/denoland/std/issues/5986