Skip to content

Commit f8ebfc1

Browse files
committed
Publish docs: Clarify requirements about the state of the index after publish.
1 parent 0e474cf commit f8ebfc1

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)