Description
Yesterday I came across this issue in Cargo and I made a PR to improve the error message for the cases where the burst
given to the publisher is not enough.
The only problem that we have in the PR to solve that is that, as @Eh2406 suggested, we should add a link in the error description so that the user can see some documentation/info about the publishing rate and then, slow down the publishing process or take any other actions.
The thing is that this info is only found either in the code(link I added above) or in the issues. See:
- Publishing workspaces with large numbers of crates hits the rate limit #1643
- Rate limit the crate publish endpoint #1596
- Increase publish rate limit from 10 to 30 #1644
Therefore the idea was to add a link to a page like: https://crates.io/policies and add there some documentation about this rate (or at least a way to arrive to some documentation about it).
This might not be a big issue now (the burst set at 30 is more than enough for almost all of the cases IMO). But providing better error messages allows maybe to decrease this burst (and maybe the rate) when users publish entire workspaces since if they get the propper error they know they just need to wait a bit to publish the next crate.
This would help to close rust-lang/cargo#9119 which at the end solves the error reporting to users about the publishing rate limit.
Would it be ok to document it in https://crates.io/policies ? If so, where exactly?