Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with build.rs #3490

Closed
max-sixty opened this issue Jun 20, 2023 · 0 comments
Closed

Building with build.rs #3490

max-sixty opened this issue Jun 20, 2023 · 0 comments

Comments

@max-sixty
Copy link

Is there any facility for building wasm binaries within build.rs, rather than calling into wasm-bindgen's CLI?

Over at PRQL/prql#2881 we're hoping to use a build.rs file to build our wasm binaries, mostly to take advantage of cargo's caching — wasm-pack seems to require a full rebuild even if no files have changed.

We're planning to use https://crates.io/crates/substrate-wasm-builder. That seems to allow building from build.rs. It's less focused on JS projects though, so probably need additional CLI calls into wasm-bindgen.

I also found https://github.com/rustminded/xtask-wasm/blob/main/src/dist.rs which also looks interesting, but doesn't seem to support building from build.rs.

(I also posted this at rustwasm/wasm-pack#916, so feel free to close if that's a better place for it)

Thank you!

@rustwasm rustwasm locked and limited conversation to collaborators Jun 21, 2023
@daxpedda daxpedda converted this issue into discussion #3494 Jun 21, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant