wasm-bindgen-cli_0_2_104: init at 0.2.104#443183
Conversation
3404c2d to
cc01717
Compare
|
Why are we keeping every version in the tree? @rizary |
|
@Aleksanaa not sure, maybe something to do with #374179? Personally not familiar with the conventions for this, though. Also #377534 |
|
wasmbindgen requires a exact match between the cli version and the library version, generally that isn't that bad as it should always be safe to update to the latest patch version of a library (but ofc when reproduciblity and outdated lock files are in the mix that complicates stuff, which is why I assume multiple versions are kept) |
cc01717 to
b24937d
Compare
|
additionally added myself as maintainer for wasm-bindgen-cli, happy to keep doing these updates and maybe figure out a better way to manage versions then keep every package in-tree. also noticed @rizary hasn't been too responsive for these updates |
b24937d to
d81266b
Compare
|
I'd love to have someone from the greater Rust team in Nixpkgs review this. |
|
considering 0.2.102 and 0.2.103 were also released a few days ago I feel like maybe we should look into a better solution here, whether it be a community flake or a built-in function in nixpkgs. |
|
I've created a flake for v0.2.103: I do not intend to support this flake forever if we can find a more permanent nixpkgs based solution. |
|
0.2.104 has been released 6 days ago. Any chance we could update and merge this? |
d81266b to
b5d4265
Compare
|
updated to 0.2.104 |
|
I think this line needs to be updated: Also the docs link is not valid anymore: |
b5d4265 to
0b9ab33
Compare
|
fixed @mksafavi didn't know about the alias list! |
The issue isnt that projects dont work with newer versions, the issue that theres two packages at play, |
0b9ab33 to
363a41b
Compare
wasmbindgen requires a exact match between the cli version and the library version, generally that isn't that bad as it should always be safe to update to the latest patch version of a library (but ofc when reproduciblity and outdated lock files are in the mix that complicates stuff, which is why I assume multiple versions are kept) It's a case of upgrading a patch version technically being breaking change unless you also update the library versions alongside it.
363a41b to
08dd663
Compare
|
I don't see a
In Nixpkgs, there's no 1:1 mapping of crates to derivations, and by and large the Cargo lock files from upstream are respected. So some packages use a version of Is that correct? |
|
Adding more to @vivax3794's comment, the main issue is that If the versions don't match it returns this error: I don't have enough experience on rust+wasm to know if updating wasm-bindgen causes any issues, but on my personal projects I didn't have any problems by upgrading and matching the versions. |
Updating the patch versions (which is the most common, considering we are on patch version 100+ now) should always be safe (again referring back to my earlier comment, if you consider updating the crate and cli together.)
|
|
it looks like people beat me to the error message, but here's a minimal example of this occurring in a cargo project: https://github.com/insipx/wasm-bindgen-cli-nix-example if wasm-bindgen in the flake and in Cargo.toml aren't both matched, wasm-bindgen will fail with the error pasted into the readme
this is correct. if users have a cargo project on |
|
Trying to remember the thoughts I had last time I looked into this: I think it's fine to package multiple versions, but we should only package versions of wasm-bindgen-cli that are used in Nixpkgs. Otherwise we have no obvious path to removal. |
|
it sounds like a workflow that only updates wasm-bindgen if its used in nixpkgs would look something like this: one package on the latest version, then everytime mostly I'm using wasm-bindgen in a dev environment rather than packages, so I am overall unfamiliar with how such a process could work with nixpkgs, but sounds reasonable if there is a way to do that check |
|
Sorry I accidentally re-requested a review from |
I don't really understand this. What I mean is that we can add should versions of wasm-bindgen-cli when we're updating or adding a package that needs that new version. |
philiptaron
left a comment
There was a problem hiding this comment.
One change requested for the homepage URL.
I have an idea about how to unify all these versions into one derivation, but it can wait for later.
Co-authored-by: Philip Taron <philip.taron@gmail.com>
|
@philiptaron happy to work on a PR to unify all the versions! If you know a good design, feel free to be assign me a ticket for it. my goal is to have a faster/better way to keep up with wasm-bindgen-cli updates, since nixpkgs has lagged behind in recent months which can sometimes be inconvenient for rust/wasm projects |
|
Thanks everyone, this makes a lot of headache disappear for me :) |
|
Was I just completely ignored on this PR? I'm sure there's an argument to be made for packaging new versions before we have a use for them, but it would have been nice to actually have that discussion… |
@alyssais
@insipx |
|
Backported this at #461408 |
Hey Alyssa, sorry I missed this message in October. I didn't get the sense that you were blocking this PR based on not having a use in Nixpkgs, just expressing a preference. This is because of the wording in Line 553 in d2c031c My sense was that you were speaking about a future world, and that the out-of-tree uses that prompted this PR were enough to not block it. |
|
Bumping a project to
I don't have enough context into rust wasm world, but being able to simply use the |
Added wasm-bindgen-cli version 0.2.104 package
closes #443144
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.