Skip to content
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

Rebuilding / build.rs #66

Closed
max-sixty opened this issue Jun 20, 2023 · 1 comment
Closed

Rebuilding / build.rs #66

max-sixty opened this issue Jun 20, 2023 · 1 comment

Comments

@max-sixty
Copy link

max-sixty commented Jun 20, 2023

I found this library by following some links from rustwasm/wasm-pack#916.

I left a comment at rustwasm/wasm-pack#916 (comment). We were originally hoping to build the wasm project with build.rs which, IIUC, would avoid rebuilding without code changes. There's a very WIP draft at PRQL/prql#2881.

IIUC this project doesn't use build.rs (though with xtask integrates into the ecosystem nicely...). Is avoiding rebuilding something that's considered here at all?

Thanks!

@max-sixty
Copy link
Author

max-sixty commented Jun 22, 2023

rustwasm/wasm-bindgen#3494 (reply in thread) suggests this isn't possible with standard approaches, so I'll close.

I think that https://crates.io/crates/substrate-wasm-builder is doing this by creating a new crate, compiling it, and then using the artifact as the .wasm files. So it's possible, but not easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant