wasm-bindgen icon indicating copy to clipboard operation
wasm-bindgen copied to clipboard

Leverage cargo workspace publishing

Open RReverser opened this issue 4 months ago • 3 comments

Cargo has recently stabilised workspace publishing in https://github.com/rust-lang/cargo/pull/15636, which should take care of package ordering automatically.

It's worth testing it out as an alternative to our current manual package list in publish.rs, which should take issues like https://github.com/wasm-bindgen/wasm-bindgen/pull/4616 out of question.

RReverser avatar Sep 04 '25 21:09 RReverser

Nice catch!

I think we should keep publish.rs only for bumping the version. With workspace publishing we can just slap publish = false on everything we don't want to publish and don't need a custom script for it anymore.

Can't wait for Cargo v1.90!

daxpedda avatar Sep 05 '25 06:09 daxpedda

I think we should keep publish.rs only for bumping the version.

I think we can use cargo-release or cargo-smart-release for that. Actually, both say they handle workspace package dependencies automatically on version bumps, so maybe we don't even need to wait for the new Cargo?

RReverser avatar Sep 05 '25 10:09 RReverser

That would be great as well!

daxpedda avatar Sep 05 '25 10:09 daxpedda