bjorn3 opened issue #12055:
Feature
See title
Benefit
This would allow getting rid of https://github.com/bytecodealliance/wasmtime/blob/main/scripts/publish.rs and in particular having to explicitly specify which packages to publish and in what order. It should also make publishing faster by publishing multiple crates at once and only waiting for the publish to be propagated when publishing a crate that has a just published crate as dependency.
Implementation
TODO: Do you have an implementation plan, and/or ideas for data structures or
algorithms to use?Alternatives
TODO: What are the alternative implementation approaches or alternative ways to
solve the problem that this feature would solve? How do these alternatives
compare to this proposal?
alexcrichton commented on issue #12055:
While I'd like to take advantage of this, there's a few reasons I haven't tried to pull the trigger yet:
- We'd need a flag like
--idempotent. Inevitably publishes go wrong and being unable to restart a publish is a bit of a deal breaker.- Over time we've packed a lot of other bits into
publish.rs, such as verifying crates build from packaged sources, verifying everything has the right ownership, and automatically bumping versions.I've no doubt that
publish --workspaceis faster, but it's not really the long poll in our publication process anyway, so I'm not too worried about it personally.
bjorn3 commented on issue #12055:
We'd need a flag like --idempotent. Inevitably publishes go wrong and being unable to restart a publish is a bit of a deal breaker.
:+1:
such as verifying crates build from packaged sources
That is basically
cargo package --workspacewithout--no-verify, right?
alexcrichton commented on issue #12055:
Almost yeah, we also test that it builds and at least locally
cargo package --workspacedoesn't look like it's building the crates, it's just packaging them. For the wasmtime repocargo package --workspacealso looks to fail since it's packagingpublish = falsepackages which otherwise aren't compatible with packaging.
Last updated: Dec 06 2025 at 06:05 UTC