bazelbuild / bazelbuild/rules_rust

Snippets are missing in wasm_bindgen output

Open
#1,342 2 comments 0 reactions 0 assignees Claimed by @rharink View on GitHub
bug needs-triage wasm
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

Hi, I'm generating wasm bindings via `rust_wasm_bindgen` for a web target.

Everything compiles as expected, the `.js` and `.d.ts` files are generated, but the `snippets` directory is missing from the output. The snippets are required by the generatged `.js`file.

When I manually execute the wasm-bindgen-cli command (extracted via bazel build --subcommands) and I change the --out-dir I see the snippets being generated.

How can I copy these to the final output dir, is this a bug? Or am I missing something?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.