feat(publish): Support 'publish.timeout' config behind '-Zpublish-timeout' by epage · Pull Request #11230 · rust-lang/cargo (original) (raw)

…eout'

Originally, crates.io would block on publish requests until the publish was complete, giving cargo publish this behavior by extension. When crates.io switched to asynchronous publishing, this intermittently broke people's workflows when publishing multiple crates. I say interittent because it usually works until it doesn't and it is unclear why to the end user because it will be published by the time they check. In the end, callers tend to either put in timeouts (and pray), poll the server's API, or use crates-index crate to poll the index.

This isn't sufficient because

This introduces unstable support for blocking by setting publish.timeout to non-zero value.

A step towards rust-lang#9507