-
Notifications
You must be signed in to change notification settings - Fork 410
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
coordinating wasm-bindgen versions #146
Comments
One issue I forsee is if the project uses 0.2.3 but the current one is 0.2.8 for instance. What if they want to specifically use 0.2.3? Where should we install it? One approach I like from Would it be possible to compile a version of |
oh i like this idea. npm does the same thing with dev dependencies. perhaps we should take that tack and read it from devdependencies? |
Isn't wasm-bindgen-cli a binary not a lib? Can we even specify it in dev-dependencies? |
I rebased the PR I had open at #81, to prepare for taking care of this. I had a few questions regarding issue:
|
and re:strategy... i am still not entirely sure, but the devdep one is the best idea i have so far! alex is on vacay for a month so i'm not sure- perhaps @fitzgen has some thoughts? |
The thing with dev-dependencies is that is a cargo-centric thing, but all of our post-build steps aren't really integrated into cargo. What I did in the template was to ensure that a project-local |
Aiming for 0.5.0 makes sense to me! Thanks for the heads up on what's landing soon @ashleygwilliams, and thank you for that link @fitzgen, that's really helpful to know about 😄 |
If still available, I would like to take this on? The way I see it we should validate the I have done something similar here |
@FreeMasen I was hoping to take care of this issue, if you don't mind. Some of this issue is carrying over from #51, which I opened a PR for back in April at #81. That issue was blocked while #115 was handled, but I can start working on this issue this week since we have a good strategy to solve this now. If you feel strongly about it and would -really- like to get it done feel free, but there's also some other open issues tagged as 'Help Wanted' here. |
@data-pup Ok, thanks for letting me know. If it is any help, I broke out the local package parts of cargo-upstall into a |
Currently when publishing wasm-bindgen I try to publish a new version of all the associated crates. All the wasm-bindgen crates also have That being said wasm-bindgen actually has support already for automatically detecting when it's digesting data it doesn't understand. This relies on manually updating a "schema version" every so often if necessary, however. This doesn't seem to be working out super well in practice because that check was botched originally I think and only recently got updated/fixed. Despite that though it'd still be best if this were all automagically managed for you. One option as well is that |
I still think a sandboxed build tool rather than a globally namespaced one is the best way to go, because what about other projects using the same thing? what if they use a different version? |
Currently at least there's not much reason to stick to an older wasm-bindgen version so in that sense it'd be fine to aggressively move it forward, but in the future it may be worthwhile to have per-project versions for sure! |
currently we are force installing wasm-bindgen, but this is frustrating because it takes a long time and often doesn't need to happen. i'd love a solution for this. let's use this issue to brainstorm. (related to #51 )
strawman proposal:
@alexcrichton can you confirm that the lib and cli versions are paired up and that this strategy would be effective?
The text was updated successfully, but these errors were encountered: