Skip to content

Commit 0240187

Browse files
committed
Auto merge of #11926 - ehuss:publish-api-index-docs, r=weihanglo
Publish docs: Clarify requirements about the state of the index after publish. The current Publish API docs don't mention anything about the requirements of updating the index asynchronously, so this adds some information about how cargo handles that.
2 parents 7618951 + f8ebfc1 commit 0240187

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/src/reference/registry-web-api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ The publish endpoint is used to publish a new version of a crate. The server
5757
should validate the crate, make it available for download, and add it to the
5858
index.
5959

60+
It is not required for the index to be updated before the successful response is sent.
61+
After a successful response, Cargo will poll the index for a short period of time to identify that the new crate has been added.
62+
If the crate does not appear in the index after a short period of time, then Cargo will display a warning letting the user know that the new crate is not yet available.
63+
6064
The body of the data sent by Cargo is:
6165

6266
- 32-bit unsigned little-endian integer of the length of JSON data.

0 commit comments

Comments
 (0)