pub fn is_already_published(stderr: &str) -> boolExpand description
Check whether cargo publish stderr indicates the package version is
already present on the registry (a success case for idempotent
re-runs).
A version that is already live is not a failure: the artifact the caller asked for is on the registry, so the release has achieved what it came for. Republishing a live version is refused by the registry rather than allowed to overwrite it, which makes a re-run fail on the 24 crates that shipped before the rate limit refused the remaining three. Treating the refusal as success is what lets a re-run converge on the whole workspace instead of stalling on work already done.
§Arguments
&str- cargo publish stderr output
§Returns
bool- True when the output reports the version is already published