-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Breaking change due to removal of snippets
method in wasm-bindgen-cli-support
0.2.93
#4159
Comments
Hitting the same bug notably causing wasm-bindgen-rayon to be missing the helper .js files to make it work when generating bindings for a rust code base to wasm + js |
Unfortunately However I don't see anything wrong with exposing these two functions again. |
In the case of the wasm-bindgen-rayon crate I don't know what they do, but some behavior of wasm-bindgen changed enough that the snippet directory that should be populated has missing files and results in an unusable js package |
In the interest of bug resolution, would you be able to push out a hotfix version for this, or would it be better for us to pin our wasm-bindgen to the previous version or remove that optimization from our tooling for now |
I am assuming you are talking about the workaround Rayon was using described in #3330 (comment). In this case Rayon was depending on a bug in
I'm happy to push out a new hotfix for this later today. |
Unsure about the workaround, all I can say is whatever they are using wasm-bindgen for the snippet directory is not working anymore,, Hyrum's law at work I guess. In any case I have no idea if it's a wasm-bindgen-rayon or a wasm-bindgen issue but as you were the last depedency to update I searched for an issue here :) In any case thanks for the work that went into wasm-bindgen, very useful tooling for the rust ecosystem |
Understood that the policy is "don't use this crate." We are in the process of rewriting our build tool with the possibility of calling out to Thanks so much for your work maintaining these tools. |
I also find this problem in my project. The problem for me is, that wasm-pack not allow to pass Using WASM_BINDGEN_SPLIT_LINKED_MODULES=1 also not working for me with wasm-pack. |
Hopefully temporarily until a solution to [this comment] is found. [this comment]: rustwasm/wasm-bindgen#4159 (comment)
Describe the Bug
PR #4066 removes the methods
Output::snippets()
andOutput::local_modules()
, both of which we call in a build tool that depends onwasm-bindgen-cli-support
.Because of
wasm-bindgen
versioning requirements we need to release new versions of the tool wheneverwasm-bindgen
updates. We understand this process and can usually just bump the patch release and make a new release ourselves.I don't see another way to access the fields that were removed in this changed, as the getters are gone and the fields are not
pub
.Steps to Reproduce
We have a couple lines that are roughly
They no longer compile due to the methods being removed in the patch release.
Additional Context
This is in https://github.com/leptos-rs/cargo-leptos/
The text was updated successfully, but these errors were encountered: